mirror of
https://github.com/internetee/registry.git
synced 2025-07-24 03:30:33 +02:00
Add verification model & migration
This commit is contained in:
parent
b8ade7628d
commit
cc142076c3
4 changed files with 168 additions and 7 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue