Show pending migrations in rails

rails-migrations, ruby-on-rails

Solution

`rake db:migrate:status` (Rails 3 to 5) or `rails db:migrate:status` (Rails 5+) will accomplish this. See this commit.

`up` means the migration has been run. `down` means the migration has not been run.

Problem

Is there a rake task that shows the pending migrations in a rails app?

Original source