mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 15:48:43 -05:00
BUGFIX: facebook does not always provide username
We key on facebook_user_id its the only thing that matters
This commit is contained in:
parent
619fa50d4b
commit
c240fb0d83
2 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
#
|
||||
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
class FacebookUserInfosUsernameCanBeNil < ActiveRecord::Migration
|
||||
def change
|
||||
change_column "facebook_user_infos", :username, :string, null: true
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue