Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
User.where(provider: "facebook").each do |user|
secure_avatar_url = user.passenger.avatar_url.sub('http:', '')
user.passenger.update_attribute(:avatar_url, secure_avatar_url)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment