Forrest logo
back to context overview

rails-db

List of commands for rails-db:

  • rails-db:tldr:11e84 rails-db: Access the database console.
    $ rails db
    try on your machine
    explain this command
  • rails-db:tldr:44047 rails-db: Rollback the last migration.
    $ rails db:rollback
    try on your machine
    explain this command
  • rails-db:tldr:5f483 rails-db: Run pending migrations.
    $ rails db:migrate
    try on your machine
    explain this command
  • rails-db:tldr:78a8b rails-db: Create the databases defined in the current environment.
    $ rails db:create
    try on your machine
    explain this command
  • rails-db:tldr:7bfbf rails-db: Destroy the databases defined in the current environment.
    $ rails db:drop
    try on your machine
    explain this command
  • rails-db:tldr:d80e4 rails-db: View the status of each migration file.
    $ rails db:migrate:status
    try on your machine
    explain this command
  • rails-db:tldr:e51d5 rails-db: Fill the current database with data defined in `db/seeds.rb`.
    $ rails db:seed
    try on your machine
    explain this command
  • rails-db:tldr:f704a rails-db: Create databases, load the schema, and initialize with seed data.
    $ rails db:setup
    try on your machine
    explain this command
back to context overview