I have an observer for a model so every time a new one is created it automatically sends a notification email.
The fact is, that every time I deploy on heroku, and reset the database, it sends a bunch of emails when creating those models…
Is there a way to prevent email sending from an observer during the “db:seed”?
Thank you very much in advance!
There are a few different methods in this question depending on your version of Rails.