class CreateCommunicationRecipientEvent < ActiveRecord::Migration[6.0]
  def change
    create_table :communication_recipient_events do |t|
      t.references :recipient, null: false,
        foreign_key: { to_table: :communication_batch_email_recipients }

      t.string :event
      t.datetime :timestamp, null: false

      t.timestamps
    end
  end
end
