Don't use migrations to seed default data
Posted Over 13 years ago by Henning Koch.
Don't insert table rows in a Rails database migration. This will break tests that expect that database to be empty and cause you all sorts of pain.
Override e-mail recipients in ActionMailer
Posted Over 13 years ago by Henning Koch.
...to a given address. This is useful for staging environments where you want to test production-like mail delivery without sending e-mails to real users...