mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 08:09:13 -05:00
6c1c8be794
This introduces a new model to store the avatars and 3 uploads per user (gravatar, system and custom) user can then pick which they want.
12 lines
326 B
Ruby
12 lines
326 B
Ruby
class AddUserAvatars < ActiveRecord::Migration
|
|
def change
|
|
create_table :user_avatars do |t|
|
|
t.integer :user_id, null: false
|
|
t.integer :system_upload_id
|
|
t.integer :custom_upload_id
|
|
t.integer :gravatar_upload_id
|
|
t.datetime :last_gravatar_download_attempt
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|