mirror of
https://github.com/discourse/discourse.git
synced 2025-02-17 04:22:45 +08:00
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:
parent
774dfc6e5f
commit
6518cac5cf
3
lib/tasks/log.rake
Normal file
3
lib/tasks/log.rake
Normal file
|
@ -0,0 +1,3 @@
|
|||
task :log => :environment do
|
||||
ActiveRecord::Base.logger = Logger.new(STDOUT)
|
||||
end
|
Loading…
Reference in New Issue
Block a user