Class: AddEmailValidationToUsers

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/tkh_authentication/create_or_update_migrations/templates/add_email_validation_to_users.rb

Instance Method Summary collapse

Instance Method Details

#changeObject


2
3
4
5
6
# File 'lib/generators/tkh_authentication/create_or_update_migrations/templates/add_email_validation_to_users.rb', line 2

def change
  add_column :users, :email_validated, :boolean, default: false
  add_column :users, :email_validation_token, :string
  add_column :users, :email_validation_token_sent_at, :datetime
end