rails-db
Various database-related subcommands for Ruby on Rails. tldr-pages
On several platforms
Several platforms
Create databases, load the schema, and initialize with seed data
rails db:setupIdentifyAccess the database console
rails dbIdentifyCreate the databases defined in the current environment
rails db:createIdentifyDestroy the databases defined in the current environment
rails db:dropIdentifyRun pending migrations
rails db:migrateIdentifyView the status of each migration file
rails db:migrate:statusIdentifyRoll back the last migration
rails db:rollbackIdentifyFill the current database with data defined in db/seeds.rb
rails db:seedIdentify