DEV: Add log rake task

Now, if you do `rake log db:migrate`, it'll run migrations, but with
logging enabled, so that you can see what is actually happening.
This commit is contained in:
Daniel Waterworth 2020-09-03 11:41:58 +01:00
parent 774dfc6e5f
commit 6518cac5cf

3
lib/tasks/log.rake Normal file
View File

@ -0,0 +1,3 @@
task :log => :environment do
ActiveRecord::Base.logger = Logger.new(STDOUT)
end