0
0
Fork 0

Only re-download avatar if URL changed (fix #19)

This commit is contained in:
Eugen Rochko 2016-03-22 21:05:23 +01:00
parent 921f40c187
commit 02e4fb2e06
4 changed files with 66 additions and 4 deletions

View file

@ -0,0 +1,5 @@
class AddAvatarRemoteUrlToAccounts < ActiveRecord::Migration
def change
add_column :accounts, :avatar_remote_url, :string, null: true, default: nil
end
end

View file

@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20160316103650) do
ActiveRecord::Schema.define(version: 20160322193748) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -40,6 +40,7 @@ ActiveRecord::Schema.define(version: 20160316103650) do
t.string "header_content_type"
t.integer "header_file_size"
t.datetime "header_updated_at"
t.string "avatar_remote_url"
end
add_index "accounts", ["username", "domain"], name: "index_accounts_on_username_and_domain", unique: true, using: :btree