Class: AddPasswordCreationToken

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

Instance Method Summary collapse

Instance Method Details

#changeObject



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

def change
  add_column :users, :password_creation_token, :string
  add_column :users, :password_creation_token_sent_at, :datetime
end