Use nil instead of empty string w/ new db constraints (#2300)

This commit is contained in:
Andy Zhao 2019-04-03 17:28:08 -04:00 committed by Ben Halpern
parent 72dfcae674
commit 7ade338002

View file

@ -46,7 +46,7 @@ module Moderator
def remove_profile_info
user.update_columns(
twitter_username: "", github_username: "", website_url: "", summary: "",
twitter_username: nil, github_username: nil, website_url: "", summary: "",
location: "", education: "", employer_name: "", employer_url: "", employment_title: "",
mostly_work_with: "", currently_learning: "", currently_hacking_on: "", available_for: "",
email_public: false, facebook_url: nil, dribbble_url: nil, medium_url: nil, stackoverflow_url: nil,