Skip to content
Browse files

Use AR::SchemaMigration.table_exists? call instead of longish AR::Bas…

…e...etc,etc
  • Loading branch information...
1 parent 68b7e7a commit 3852f2d40883423e8c15e75b0b96e341f81a7752 @DNNX DNNX committed Jun 27, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/railties/databases.rake
View
2 activerecord/lib/active_record/railties/databases.rake
@@ -93,7 +93,7 @@ db_namespace = namespace :db do
desc 'Display status of migrations'
task :status => [:environment, :load_config] do
- unless ActiveRecord::Base.connection.table_exists?(ActiveRecord::Migrator.schema_migrations_table_name)
+ unless ActiveRecord::SchemaMigration.table_exists?
abort 'Schema migrations table does not exist yet.'
end
db_list = ActiveRecord::SchemaMigration.normalized_versions

0 comments on commit 3852f2d

Please sign in to comment.
Something went wrong with that request. Please try again.