20161003142332_add_confirmable_to_users.rb 396 B

12345678910111213
  1. # frozen_string_literal: true
  2. class AddConfirmableToUsers < ActiveRecord::Migration[5.0]
  3. def change
  4. change_table(:users, bulk: true) do |t|
  5. t.column :confirmation_token, :string
  6. t.column :confirmed_at, :datetime
  7. t.column :confirmation_sent_at, :datetime
  8. t.column :unconfirmed_email, :string
  9. end
  10. add_index :users, :confirmation_token, unique: true
  11. end
  12. end