diff options
author | Akira Matsuda <ronnie@dio.jp> | 2010-06-28 12:08:29 +0900 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2010-06-27 21:16:09 -0700 |
commit | 0e5d7c6f6458d279c59d34f1e37289e338784e7b (patch) | |
tree | 9ca9d384395d60d814d820c3cedb6940d97df155 /activerecord | |
parent | 25215d7285db10e2c04d903f251b791342e4dd6a (diff) | |
download | rails-0e5d7c6f6458d279c59d34f1e37289e338784e7b.tar.gz rails-0e5d7c6f6458d279c59d34f1e37289e338784e7b.tar.bz2 rails-0e5d7c6f6458d279c59d34f1e37289e338784e7b.zip |
Use ActiveRecord::Migrator.schema_migrations_table_name instead of hardcoding "schema_migrations"
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/railties/databases.rake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/railties/databases.rake b/activerecord/lib/active_record/railties/databases.rake index 80218d6ff9..3cb6d63727 100644 --- a/activerecord/lib/active_record/railties/databases.rake +++ b/activerecord/lib/active_record/railties/databases.rake @@ -175,7 +175,7 @@ namespace :db do desc "Display status of migrations" task :status => :environment do config = ActiveRecord::Base.configurations[Rails.env || 'development'] - db_list = ActiveRecord::Base.connection.select_values("SELECT version FROM schema_migrations") + db_list = ActiveRecord::Base.connection.select_values("SELECT version FROM #{ActiveRecord::Migrator.schema_migrations_table_name}") file_list = [] Dir.foreach(File.join(Rails.root, 'db', 'migrate')) do |file| # only files matching "20091231235959_some_name.rb" pattern |