about summary refs log tree commit diff
path: root/db/migrate/20200627125810_add_thumbnail_columns_to_media_attachments.rb
blob: f9c87a53cc705902a8571fb32059cd33ea1206f0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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