DEV Community

n350071πŸ‡―πŸ‡΅
n350071πŸ‡―πŸ‡΅

Posted on

3 1

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)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free β†’

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay