Advertisement
Guest User

Untitled

a guest
May 26th, 2016
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. class ActiveRecord::Migration
  2.  
  3. def exec_migration_with_ignore_errors(conn, direction)
  4. begin
  5. exec_migration_without_ignore_errors(conn, direction)
  6. rescue => e
  7. puts "Ignoring #{e}"
  8. end
  9. end
  10.  
  11. alias_method_chain :exec_migration, :ignore_errors
  12. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement