Follow

RT @websebdev@twitter.com

💎 tip💎

`after_destroy` callback isn't safe for deleting external (API) things. On exception raise, the transaction will rollback but you still lost your external thing. In that case, use `after_destroy_commit` to be sure the transaction has finished.

🐦🔗: twitter.com/websebdev/status/1

Sign in to participate in the conversation
Ruby.social

A Mastodon instance for Rubyists & friends