Skip to content

Commit

Permalink
Generate add_index for :authentication_token (used by :token_authenti…
Browse files Browse the repository at this point in the history
…catable).
  • Loading branch information
joliss authored and josevalim committed Jan 14, 2011
1 parent fa239b9 commit 54dc82a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/generators/active_record/templates/migration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def self.up
add_index :<%= table_name %>, :reset_password_token, :unique => true
# add_index :<%= table_name %>, :confirmation_token, :unique => true
# add_index :<%= table_name %>, :unlock_token, :unique => true
# add_index :<%= table_name %>, :authentication_token, :unique => true
end

def self.down
Expand Down

0 comments on commit 54dc82a

Please sign in to comment.