diff options
author | eileencodes <eileencodes@gmail.com> | 2018-02-05 13:38:13 -0500 |
---|---|---|
committer | eileencodes <eileencodes@gmail.com> | 2018-02-05 13:38:13 -0500 |
commit | 1dfc3a248ac03b96696927159e5e1a00c8e96ec2 (patch) | |
tree | 5c151b03da02754bc2e5c9d8e6d161991eabe4b4 /activerecord/lib/active_record/tasks | |
parent | b988ecb99ff6c8854e4b74ef8a7ade8d9ef5d954 (diff) | |
download | rails-1dfc3a248ac03b96696927159e5e1a00c8e96ec2.tar.gz rails-1dfc3a248ac03b96696927159e5e1a00c8e96ec2.tar.bz2 rails-1dfc3a248ac03b96696927159e5e1a00c8e96ec2.zip |
Don't output information on drop if not verbose
Followup to b988ecb, when I cherry-picked from my parallel testing
branch I didn't realize `drop` wasn't part of the commit.
Diffstat (limited to 'activerecord/lib/active_record/tasks')
-rw-r--r-- | activerecord/lib/active_record/tasks/database_tasks.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/tasks/database_tasks.rb b/activerecord/lib/active_record/tasks/database_tasks.rb index d5b457721a..d8e0cd1e30 100644 --- a/activerecord/lib/active_record/tasks/database_tasks.rb +++ b/activerecord/lib/active_record/tasks/database_tasks.rb @@ -144,7 +144,7 @@ module ActiveRecord def drop(*arguments) configuration = arguments.first class_for_adapter(configuration["adapter"]).new(*arguments).drop - $stdout.puts "Dropped database '#{configuration['database']}'" + $stdout.puts "Dropped database '#{configuration['database']}'" if verbose? rescue ActiveRecord::NoDatabaseError $stderr.puts "Database '#{configuration['database']}' does not exist" rescue Exception => error |