2023-07-12 09:47:08 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-06-05 02:43:02 +02:00
|
|
|
class AddAttachmentAvatarToAccounts < ActiveRecord::Migration[4.2]
|
2016-02-28 00:02:59 +01:00
|
|
|
def self.up
|
|
|
|
change_table :accounts do |t|
|
2024-05-20 16:59:27 +02:00
|
|
|
# The following corresponds to `t.attachment :avatar` in an older version of Paperclip
|
|
|
|
t.string :avatar_file_name
|
|
|
|
t.string :avatar_content_type
|
|
|
|
t.integer :avatar_file_size
|
|
|
|
t.datetime :avatar_updated_at
|
2016-02-28 00:02:59 +01:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.down
|
|
|
|
remove_attachment :accounts, :avatar
|
|
|
|
end
|
|
|
|
end
|