Checking migration status

suggest change

We can check the status of migrations by running

rake db:migrate:status
rails db:migrate:status

The output will look like this:

Status   Migration ID    Migration Name
--------------------------------------------------
up     20140711185212  Create documentation pages
up     20140724111844  Create nifty attachments table
up     20140724114255  Create documentation screenshots
up     20160213170731  Create owners
up     20160218214551  Create users
up     20160221162159  ********** NO FILE **********
up     20160222231219  ********** NO FILE **********

Under the status field, up means the migration has been run and down means that we need to run the migration.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:


ActiveRecord migrations:
* Checking migration status

Table Of Contents
3 Views
4 ActiveRecord migrations
19 Caching
23 Rails 5
25 Mongoid
26 Gems
55 CSV