diff options
author | Philippe Creux <pcreux@gmail.com> | 2014-02-13 10:46:22 -0800 |
---|---|---|
committer | Philippe Creux <pcreux@gmail.com> | 2014-02-13 11:07:13 -0800 |
commit | b2831904e5304d23d20844d8aa0e03c6b81a8d25 (patch) | |
tree | 0000cb67ac52f061582d96135c0673374dfbae86 /activerecord | |
parent | 40e7fe3451df8e5b454f7d0472396d2429edc0e5 (diff) | |
download | rails-b2831904e5304d23d20844d8aa0e03c6b81a8d25.tar.gz rails-b2831904e5304d23d20844d8aa0e03c6b81a8d25.tar.bz2 rails-b2831904e5304d23d20844d8aa0e03c6b81a8d25.zip |
Add hint to error message of task db:migrate:down
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 561387a179..0a2f726525 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 |