Permalink
Browse files

Merge pull request #14048 from pcreux/better-error-message-db-migrate…

…-down

Add hint to error message of task db:migrate:down
  • Loading branch information...
carlosantoniodasilva committed Feb 14, 2014
2 parents 112b58f + b283190 commit cdda29051a4d1216288f06bacfc05da59fcdb40b
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit cdda290

Please sign in to comment.