Way to view Rails Migration output

Posted by Ganesh Shankar on Stack Overflow See other posts from Stack Overflow or by Ganesh Shankar
Published on 2010-04-14T00:32:16Z Indexed on 2010/04/14 1:23 UTC
Read the original article Hit count: 487

Is there an easy way to see the actual SQL generated by a rails migration?

I have a situation where a migration to change a column type worked on my local development machine by partially failed on the production server.

My postgreSQL versions are different between local and production (7 on production, 8 on local) so I'm hoping by looking at the SQL generated on the successful migration locally I can work out a SQL statement to run on production to fix things....

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about postgresql