This repository has been archived on 2024-06-09. You can view files and clone it, but cannot push or open issues/pull-requests.
2023-07-12 09:47:08 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2020-06-29 13:56:55 +02:00
|
|
|
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
|