2019-05-02 18:17:27 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2013-02-25 11:42:20 -05:00
|
|
|
# avatar_url does not function properly as it does not properly deal with scaling.
|
|
|
|
# css based scaling is inefficient and has terrible results in both firefox and ie. canvas based scaling is slow.
|
2013-02-05 14:16:51 -05:00
|
|
|
#
|
|
|
|
# for local urls we need to upload an image and have a pointer to the upload, then use the upload id in the user table
|
|
|
|
# for gravatar we already have the email and can hash it
|
|
|
|
|
2017-08-31 00:06:56 -04:00
|
|
|
class DropAvatarUrlFromUsers < ActiveRecord::Migration[4.2]
|
2013-02-05 14:16:51 -05:00
|
|
|
def up
|
|
|
|
remove_column :users, :avatar_url
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
2013-02-25 11:42:20 -05:00
|
|
|
add_column :users, :avatar_url, :string, null: false, default: ''
|
2013-02-05 14:16:51 -05:00
|
|
|
end
|
|
|
|
end
|