20161003142332_add_confirmable_to_users.rb 376 B

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