7 lines
229 B
Ruby
7 lines
229 B
Ruby
namespace :db do
|
|
desc "Prints the migrated versions"
|
|
task :schema_migrations => :environment do
|
|
puts ActiveRecord::Base.connection.select_values(
|
|
'select version from schema_migrations order by version' )
|
|
end
|
|
end
|