Installer
bash
bin/rails generate missive:installCopies a single db/migrate/<timestamp>_install_missive.rb migration into your application. Run bin/rails db:migrate afterwards.
Tables
| Table | Model |
|---|---|
missive_senders | Sender |
missive_subscribers | Subscriber |
missive_subscriptions | Subscription |
missive_lists | List |
missive_messages | Message |
missive_dispatches | Dispatch |
missive_subscribers.user_id has a foreign key to your users table, so the users table must exist before you run the migration. missive_senders.user_id has no foreign key constraint.