John Fadria
John Fadria

Reputation: 1945

how to know the latest migration performed in Rails

With rake db:migrate:status I can display the status of migrations, but what is the way to display the latest performed?

Upvotes: 0

Views: 78

Answers (1)

Llama Moth
Llama Moth

Reputation: 26

This has already been answered on Stack Overflow here: https://stackoverflow.com/a/8847126/4461194

    1.9.3-p551 :001 > ActiveRecord::Migrator.current_version
   (0.6ms)  SELECT "schema_migrations"."version" FROM "schema_migrations"
 => 20150114073202

Upvotes: 1

Related Questions