mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-24 14:56:27 +00:00
14 lines
372 B
Ruby
14 lines
372 B
Ruby
# frozen_string_literal: true
|
|
|
|
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
|