diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2012-12-12 15:38:16 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2012-12-12 15:38:46 -0700 |
commit | fe70cde87cb1c03f1e2fd9e6ffa0877deda589af (patch) | |
tree | 7fa0bcbc6174983387cde403f98bbe32ab405d57 | |
parent | d4333eded218346eb8b8313f7c69851782f594ef (diff) | |
download | rails-fe70cde87cb1c03f1e2fd9e6ffa0877deda589af.tar.gz rails-fe70cde87cb1c03f1e2fd9e6ffa0877deda589af.tar.bz2 rails-fe70cde87cb1c03f1e2fd9e6ffa0877deda589af.zip |
Shush deprecation warning due to initializing a Migrator with migration paths rather than migrations. Use Migrator.open(paths) instead. Thanks @rubys!
-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 0a9caa25b2..b25c0270c2 100644 --- a/activerecord/lib/active_record/railties/databases.rake +++ b/activerecord/lib/active_record/railties/databases.rake @@ -167,7 +167,7 @@ db_namespace = namespace :db do # desc "Raises an error if there are pending migrations" task :abort_if_pending_migrations => [:environment, :load_config] do - pending_migrations = ActiveRecord::Migrator.new(:up, ActiveRecord::Migrator.migrations_paths).pending_migrations + pending_migrations = ActiveRecord::Migrator.open(ActiveRecord::Migrator.migrations_paths).pending_migrations if pending_migrations.any? puts "You have #{pending_migrations.size} pending migrations:" |