aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/railties
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2014-02-14 12:01:26 -0200
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2014-02-14 12:01:26 -0200
commitcdda29051a4d1216288f06bacfc05da59fcdb40b (patch)
tree7d2cd6b05241d7e52ac5311717ddb203b63ba55d /activerecord/lib/active_record/railties
parent112b58f115da181a9ca3111fa4712a539b49184e (diff)
parentb2831904e5304d23d20844d8aa0e03c6b81a8d25 (diff)
downloadrails-cdda29051a4d1216288f06bacfc05da59fcdb40b.tar.gz
rails-cdda29051a4d1216288f06bacfc05da59fcdb40b.tar.bz2
rails-cdda29051a4d1216288f06bacfc05da59fcdb40b.zip
Merge pull request #14048 from pcreux/better-error-message-db-migrate-down
Add hint to error message of task db:migrate:down
Diffstat (limited to 'activerecord/lib/active_record/railties')
-rw-r--r--activerecord/lib/active_record/railties/databases.rake2
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 9be734e88e..1d5c80bc01 100644
--- a/activerecord/lib/active_record/railties/databases.rake
+++ b/activerecord/lib/active_record/railties/databases.rake
@@ -75,7 +75,7 @@ db_namespace = namespace :db do
# desc 'Runs the "down" for a given migration VERSION.'
task :down => [:environment, :load_config] do
version = ENV['VERSION'] ? ENV['VERSION'].to_i : nil
- raise 'VERSION is required' unless version
+ raise 'VERSION is required - To go down one migration, run db:rollback' unless version
ActiveRecord::Migrator.run(:down, ActiveRecord::Migrator.migrations_paths, version)
db_namespace['_dump'].invoke
end