You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
341 B
12 lines
341 B
5 years ago
|
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
|