1 class CreateAuthors < ActiveRecord::Migration
3 create_table(:authors) do |t|
5 t.integer :user_id, :null => false, :default => 0
\r
10 add_index :authors, :email, :unique => true
11 add_index :authors, :reset_password_token, :unique => true
12 add_index :authors, :confirmation_token, :unique => true
13 # add_index :authors, :unlock_token, :unique => true
14 add_index :authors, :authentication_token, :unique => true