CmdID

CmdID / Commands

rails-db

Various database-related subcommands for Ruby on Rails. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Create databases, load the schema, and initialize with seed data

rails db:setupIdentify

Access the database console

rails dbIdentify

Create the databases defined in the current environment

rails db:createIdentify

Destroy the databases defined in the current environment

rails db:dropIdentify

Run pending migrations

rails db:migrateIdentify

View the status of each migration file

rails db:migrate:statusIdentify

Roll back the last migration

rails db:rollbackIdentify

Fill the current database with data defined in db/seeds.rb

rails db:seedIdentify