diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-03-22 21:05:23 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-03-22 21:05:23 +0100 |
commit | 02e4fb2e06f424c16ab25ea294a4af6490a5f7e3 (patch) | |
tree | a63f863ed677eb789646ab468681001628e29490 /db/migrate | |
parent | 921f40c1873883e8ce476e04de1f3f1bd5ccbf91 (diff) |
Only re-download avatar if URL changed (fix #19)
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20160322193748_add_avatar_remote_url_to_accounts.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/db/migrate/20160322193748_add_avatar_remote_url_to_accounts.rb b/db/migrate/20160322193748_add_avatar_remote_url_to_accounts.rb new file mode 100644 index 000000000..9dc4b027f --- /dev/null +++ b/db/migrate/20160322193748_add_avatar_remote_url_to_accounts.rb @@ -0,0 +1,5 @@ +class AddAvatarRemoteUrlToAccounts < ActiveRecord::Migration + def change + add_column :accounts, :avatar_remote_url, :string, null: true, default: nil + end +end |