skill-assessment-app/db/migrate/20160824183159_add_resets_to_users.rb
2016-08-24 15:02:32 -05:00

9 lines
209 B
Ruby

class AddResetsToUsers < ActiveRecord::Migration[5.0]
def change
add_column :users, :reset_token, :string
add_column :users, :reset_timestamp, :datetime
add_index :users, :reset_token
end
end