mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
12 lines
341 B
Ruby
12 lines
341 B
Ruby
|
class AddThumbnailColumnsToMediaAttachments < ActiveRecord::Migration[5.2]
|
||
|
def up
|
||
|
add_attachment :media_attachments, :thumbnail
|
||
|
add_column :media_attachments, :thumbnail_remote_url, :string
|
||
|
end
|
||
|
|
||
|
def down
|
||
|
remove_attachment :media_attachments, :thumbnail
|
||
|
remove_column :media_attachments, :thumbnail_remote_url
|
||
|
end
|
||
|
end
|