20161003142332_add_confirmable_to_users.rb 345 B

123456789
  1. class AddConfirmableToUsers < ActiveRecord::Migration[5.0]
  2. def change
  3. add_column :users, :confirmation_token, :string
  4. add_column :users, :confirmed_at, :datetime
  5. add_column :users, :confirmation_sent_at, :datetime
  6. add_column :users, :unconfirmed_email, :string
  7. add_index :users, :confirmation_token, unique: true
  8. end
  9. end