1
0
mirror of https://github.com/fspc/BikeShed-1.git synced 2025-02-28 16:53:23 -05:00
BikeShed-1/db/migrate/20130525143240_add_username_to_user.rb
Jason Denney 9021294c4b Auth by username instead of email
Added username to User table/model
2013-05-25 11:08:58 -04:00

7 lines
164 B
Ruby

class AddUsernameToUser < ActiveRecord::Migration
def change
add_column :users, :username, :string
add_index :users, :username, :unique => true
end
end