Skip to content

Instantly share code, notes, and snippets.

@meineerde
Created February 11, 2013 11:26
Show Gist options
  • Save meineerde/4753958 to your computer and use it in GitHub Desktop.
Save meineerde/4753958 to your computer and use it in GitHub Desktop.
diff --git a/db/migrate/20100714111653_build_initial_journals_for_acts_as_journalized.rb b/db/migrate/20100714111653_build_initial_journals_for_acts_as_journalized.rb
index 0e76661..80a9a60 100644
--- a/db/migrate/20100714111653_build_initial_journals_for_acts_as_journalized.rb
+++ b/db/migrate/20100714111653_build_initial_journals_for_acts_as_journalized.rb
@@ -50,6 +50,10 @@ class BuildInitialJournalsForActsAsJournalized < ActiveRecord::Migration
puts "ERROR: errors creating the initial journal for #{o.class.to_s}##{o.id.to_s}:"
puts " #{ex.message}"
end
+ rescue Exception => ex
+ puts "ERROR: errors creating the initial journal for #{o.class.to_s}##{o.id.to_s}:"
+ puts " #{ex.message}"
+ raise
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment