-
-
Save jmcolella/dd4d36bd16d4fe8a2bc925d86577c588 to your computer and use it in GitHub Desktop.
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
class OldModel < ApplicationRecord | |
after_commit :sync_to_new_model | |
# other methods ... | |
def sync_to_new_model | |
# Perform synchronization logic ... | |
SynchronizeNewModel.peform_async | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment