20210416200740_create_canonical_email_blocks.rb 341 B

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