DEV Community

n350071🇯🇵
n350071🇯🇵

Posted on

Rails db:migrate show alter SQL

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

Top comments (0)