ref: https://qiita.com/pekepek/items/2dc9dfc9ed2b7f3b0f0c
1. make a rake task
task log: :environment do
ActiveRecord::Base.logger = Logger.new(STDOUT)
end
2. run a rake task with the log task
rake log db:migrate
ref: https://qiita.com/pekepek/items/2dc9dfc9ed2b7f3b0f0c
task log: :environment do
ActiveRecord::Base.logger = Logger.new(STDOUT)
end
rake log db:migrate
For further actions, you may consider blocking this person and/or reporting abuse
Abdulkadir Erbas -
OLUWAYEMI FISAYO NATHANIEL -
Alejandro Sosa -
Pedro Kiefer -
Top comments (0)