Last active
March 5, 2019 17:11
-
-
Save JamesPaden/8e6d58c7419d91d6ced1d67ec668b9cb to your computer and use it in GitHub Desktop.
A code example referenced in our blog post: https://medium.com/expected-behavior/our-plan-for-zero-downtime-database-transitions-with-rails-part-2-3cc4c5d6051c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def write_active_migrator_destination_model | |
begin | |
write_active_migrator_destination_model! | |
rescue Exception => e | |
ActiveMigrator.config.exception_handler.call(e, active_migrator_source_class: active_migrator_source_klass.name, active_migrator_source_id: id) | |
end | |
true | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment