-
-
Save motoroller95/b2f384921b8acc68846e8e3a9276d201 to your computer and use it in GitHub Desktop.
transaction
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
ApplicationRecord.transaction do | |
user = User.create! | |
CalculatePayoutJob.perform_later(user) | |
// куча действий тут | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment