Rails Mailboxer add column

169 Views Asked by At

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!

2

There are 2 best solutions below

3
On

You cannot modify already applied migration.

There is two options how to add collumn 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.

0
On

Try:

rails g migration add_fields_to_mailboxer_notification example:s