20210416200740_create_canonical_email_blocks.rb 372 B

123456789101112
  1. # frozen_string_literal: true
  2. class CreateCanonicalEmailBlocks < ActiveRecord::Migration[6.1]
  3. def change
  4. create_table :canonical_email_blocks do |t|
  5. t.string :canonical_email_hash, null: false, default: '', index: { unique: true }
  6. t.belongs_to :reference_account, null: false, foreign_key: { to_table: 'accounts' }
  7. t.timestamps
  8. end
  9. end
  10. end