Is there an easy way to see the actual SQL generated by the rail migration?
I had a situation where the migration to change the type of column worked on my local development machine, partially failing on the production server.
My postgreSQL versions are different between local and production (7 in production, 8 in local), so I hope that by looking at the SQL generated during a successful migration, I can work out an SQL statement to run in production to fix things ....
ruby-on-rails activerecord postgresql migration
Ganesh shankar
source share