aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/bin
diff options
context:
space:
mode:
authoreileencodes <eileencodes@gmail.com>2017-12-20 17:05:11 -0500
committereileencodes <eileencodes@gmail.com>2018-02-05 13:35:05 -0500
commitb988ecb99ff6c8854e4b74ef8a7ade8d9ef5d954 (patch)
tree866439dfcaabc8bedec6ce27f9fba9accd2c671d /activesupport/bin
parentf9a8646d8150956524a72af9f85c832bbe84061b (diff)
downloadrails-b988ecb99ff6c8854e4b74ef8a7ade8d9ef5d954.tar.gz
rails-b988ecb99ff6c8854e4b74ef8a7ade8d9ef5d954.tar.bz2
rails-b988ecb99ff6c8854e4b74ef8a7ade8d9ef5d954.zip
Add ability to turn off verbose for database tasks
You could use the `VERBOSE` env var to turn off output for migrations tasks but you couldn't use it for other tasks. This change moves the `verbose?` check to a method so we can also use it in create and drop respectively. tenderlove and I noticed this as part of the ongoing work in parallel testing. When the parallel tests boot the app needs to create new databases for each worker. The output from these is unnecessary but there was previously no way to turn it off. Now if `VERBOSE=false` is passes to `bin/rails db:create` the text "Created blah blah db" will no longer be output.
Diffstat (limited to 'activesupport/bin')
0 files changed, 0 insertions, 0 deletions