BUGFIX: facebook does not always provide username

We key on facebook_user_id its the only thing that matters
This commit is contained in:
Sam 2014-03-20 15:35:30 +11:00
parent 619fa50d4b
commit c240fb0d83
2 changed files with 6 additions and 2 deletions

View File

@ -9,7 +9,7 @@ end
# id :integer not null, primary key
# user_id :integer not null
# facebook_user_id :integer not null
# username :string(255) not null
# username :string(255)
# first_name :string(255)
# last_name :string(255)
# email :string(255)
@ -24,4 +24,3 @@ end
# index_facebook_user_infos_on_facebook_user_id (facebook_user_id) UNIQUE
# index_facebook_user_infos_on_user_id (user_id) UNIQUE
#

View File

@ -0,0 +1,5 @@
class FacebookUserInfosUsernameCanBeNil < ActiveRecord::Migration
def change
change_column "facebook_user_infos", :username, :string, null: true
end
end