Skip to content

Generated migration should not include columns automatically created by create_active_mailer_table #12

@esquivalient

Description

@esquivalient

create_active_mailer_table automatically makes

    # t.integer   :sender_id
     # t.timestamp :sent_at
     # t.string    :subject

and they're also included in the generated migration. That results in errors like

you can't define an already defined column 'sent_at'.
/Users/esquivalient/Dropbox/code/burndown/db/migrate/20220804162528_create_invite_team_member_emails.rb:8:in `block in change'
/Users/esquivalient/Dropbox/code/burndown/db/migrate/20220804162528_create_invite_team_member_emails.rb:3:in `change'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions