On 30-Oct-2006, at 19:38, Marcelo de Moraes Serpa wrote:

Hi scott,

Thanks for the explanation!

What about migrations, have you managed to make it work too?

Thanks,

Marcelo.

Unfortunately I haven't had time to play with migrations and integrate them into my current workflow.. Currently I just have an incredibly ugly hack that dumps the local Db to a file under version control and then loads it into the server with a really ugly custom remote:migrate task:


task :migrate, :roles => :db do
  run <<-CMD
mysql -u #{db_name} -p#{db_password} #{db_name} < #{deploy_to}/ current/app/config/sql/db
  CMD
end


It's a case of pounding in finishing nails with a sledgehammer, but it gets the job done at the moment.

s.

Attachment: PGP.sig
Description: This is a digitally signed message part

Reply via email to