Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ActiveRecord::Migration
- def exec_migration_with_ignore_errors(conn, direction)
- begin
- exec_migration_without_ignore_errors(conn, direction)
- rescue => e
- puts "Ignoring #{e}"
- end
- end
- alias_method_chain :exec_migration, :ignore_errors
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement