Add verification model & migration

This commit is contained in:
Alex Sherman 2020-06-05 16:41:56 +05:00
parent b8ade7628d
commit cc142076c3
4 changed files with 168 additions and 7 deletions

View file

@ -0,0 +1,10 @@
class CreateEmailAddressVerifications < ActiveRecord::Migration[6.0]
def change
create_table :email_address_verifications do |t|
t.string :email, null: false
t.datetime :verified_at
end
add_index :email_address_verifications, :email, unique: true
end
end