lib/fdlcap/recipes/automigrate.rb in fdlcap-0.4.0 vs lib/fdlcap/recipes/automigrate.rb in fdlcap-0.4.2

- old
+ new

@@ -1,7 +1,10 @@ Capistrano::Configuration.instance(:must_exist).load do define_recipe :automigrate do - after "deploy:update", "deploy:migrate" + after 'deploy:finalize_update' do + look_for_db_changes + after("deploy:symlink_configs", "deploy:migrate") if db_changed? + end end end \ No newline at end of file