Auth by username instead of email

Added username to User table/model
This commit is contained in:
Jason Denney
2013-05-25 11:08:58 -04:00
parent a07d6345e8
commit 9021294c4b
9 changed files with 25 additions and 7 deletions
@@ -0,0 +1,6 @@
class AddUsernameToUser < ActiveRecord::Migration
def change
add_column :users, :username, :string
add_index :users, :username, :unique => true
end
end