Browse files

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.
  • Loading branch information...
eileencodes committed Feb 5, 2018
1 parent b988ecb commit 1dfc3a248ac03b96696927159e5e1a00c8e96ec2
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/tasks/database_tasks.rb
@@ -144,7 +144,7 @@ def create_current(environment = env)
def drop(*arguments)
configuration = arguments.first
$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

0 comments on commit 1dfc3a2

Please sign in to comment.