This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
2023-07-12 00:47:08 -07:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2021-04-16 18:14:25 -07:00
|
|
|
class CreateCanonicalEmailBlocks < ActiveRecord::Migration[6.1]
|
|
|
|
def change
|
|
|
|
create_table :canonical_email_blocks do |t|
|
|
|
|
t.string :canonical_email_hash, null: false, default: '', index: { unique: true }
|
2021-06-29 21:13:55 -07:00
|
|
|
t.belongs_to :reference_account, null: false, foreign_key: { to_table: 'accounts' }
|
2021-04-16 18:14:25 -07:00
|
|
|
|
|
|
|
t.timestamps
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|