osem-fcy/db/migrate/20200715034647_add_picture_to_users.rb
Michael Ball 3883188dcd Support Users Directly Uploading Profile Pictures.
* Adds a `picture` attribute to `User`.
* Preserves Gravatar as a fallback option.
* Now, you should use `user.profile_picturer` instead of `gravatar_url`
* TODO: Ensure `profile_picture` handles sizing right for uploaded images.
2020-07-14 21:06:15 -07:00

5 lines
119 B
Ruby

class AddPictureToUsers < ActiveRecord::Migration[5.2]
def change
add_column :users, :picture, :string
end
end