about summary refs log tree commit diff
path: root/db/migrate/20161003142332_add_confirmable_to_users.rb
blob: cbef4c4df25e9344c86be3cd620ea3bc13ef66f1 (plain) (blame)
1
2
3
4
5
6
7
8
9
class AddConfirmableToUsers < ActiveRecord::Migration[5.0]
  def change
    add_column :users, :confirmation_token, :string
    add_column :users, :confirmed_at, :datetime
    add_column :users, :confirmation_sent_at, :datetime
    add_column :users, :unconfirmed_email, :string
    add_index :users, :confirmation_token, unique: true
  end
end