Hey all. I’m trying to export my app’s data from mysql to postgres in
advance of a database switch.
I’ve tried this:
task(:export => :environment) do
for user in @users
user.save_with_validation(perform_validation = false)
However, nothing’s happening – no activity in the pg environment log,
no records added.
I’ve also tried exporting as yaml and then importing, using Tobias
Lutke’s approach (http://blog.leetsoft.com/files/code/backup.rake)
However, the import bombs here:
because of some unexpected quote marks in some of the content.
Any help getting either of these approaches to work would be hugely