1 class DeviseCreateAuthors < ActiveRecord::Migration
3 create_table(:authors) do |t|
5 t.database_authenticatable :null => false
9 t.token_authenticatable
13 # t.lockable :lock_strategy => :failed_attempts, :unlock_strategy => :both
19 add_index :authors, :email, :unique => true
20 add_index :authors, :reset_password_token, :unique => true
21 add_index :authors, :confirmation_token, :unique => true
22 # add_index :authors, :unlock_token, :unique => true
23 add_index :authors, :authentication_token, :unique => true