discourse/db/migrate/20160919003141_add_avatar_url_to_facebook_info.rb
Sam 5b3cd3fac9 FEATURE: Import facebook avatars when logging in via facebook
FIX: warning about popup dimensions when using facebook login

Rules are:

- On account creation we always import
- If you already have an avatar uploaded, nothing is changed
- If you have no avatar uploaded, we upload from facebook on login
- If you have no avatar uploaded, we select facebook unless gravatar already selected

This also fixes SSO issues where on account creation accounts had missing avatar uploads
2016-09-19 15:10:23 +10:00

6 lines
140 B
Ruby

class AddAvatarUrlToFacebookInfo < ActiveRecord::Migration
def change
add_column :facebook_user_infos, :avatar_url, :string
end
end