mirror of
https://github.com/fspc/BikeShed-1.git
synced 2026-09-16 08:31:36 -04:00
Auth by username instead of email
Added username to User table/model
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
class AddUsernameToUser < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :users, :username, :string
|
||||
add_index :users, :username, :unique => true
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user