Reputation: 307
I'd like to add a column to the Mailboxer migration, but have no idea how to do that. Simply generating the migration and migrating is not enough. Anyone with similar experience?
Cheers!
Upvotes: -1
Views: 166
Reputation: 11262
You cannot modify already applied migration.
There is two options how to add column in this situation, create create new migration or rollback to step before migration that you're changing, edit it and apply it again.
First one is better.
Also, there is step by step installation guide for Mailboxer on GitHub.
Upvotes: 0
Reputation: 946
Try:
rails g migration add_fields_to_mailboxer_notification example:s
Upvotes: 0