aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/railties
diff options
context:
space:
mode:
authorViktar Basharymau <viktar.basharymau@thehamon.com>2014-06-27 20:16:21 +0300
committerViktar Basharymau <viktar.basharymau@thehamon.com>2014-06-27 20:16:21 +0300
commit68b7e7ab9776d26d69bc84037ba81c68dd38885b (patch)
treeae422dc67dcca0b80b2af9e47363f24726530543 /activerecord/lib/active_record/railties
parent0813607c7004ab06d35ae75ba205b97cf37122a2 (diff)
downloadrails-68b7e7ab9776d26d69bc84037ba81c68dd38885b.tar.gz
rails-68b7e7ab9776d26d69bc84037ba81c68dd38885b.tar.bz2
rails-68b7e7ab9776d26d69bc84037ba81c68dd38885b.zip
Extract AR::SchemaMigration.normalized_versions method
Diffstat (limited to 'activerecord/lib/active_record/railties')
-rw-r--r--activerecord/lib/active_record/railties/databases.rake3
1 files changed, 1 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/railties/databases.rake b/activerecord/lib/active_record/railties/databases.rake
index c82a56718a..d7621646d9 100644
--- a/activerecord/lib/active_record/railties/databases.rake
+++ b/activerecord/lib/active_record/railties/databases.rake
@@ -96,8 +96,7 @@ db_namespace = namespace :db do
unless ActiveRecord::Base.connection.table_exists?(ActiveRecord::Migrator.schema_migrations_table_name)
abort 'Schema migrations table does not exist yet.'
end
- db_list = ActiveRecord::SchemaMigration.pluck(:version)
- db_list.map! { |version| ActiveRecord::SchemaMigration.normalize_migration_number(version) }
+ db_list = ActiveRecord::SchemaMigration.normalized_versions
file_list =
ActiveRecord::Migrator.migrations_paths.flat_map do |path|