~cytrogen/masto-fe

ref: cc4560d95bae267a8f9281f9f559f8a08b87bd85 masto-fe/db/migrate/20200627125810_add_thumbnail_columns_to_media_attachments.rb -rw-r--r-- 372 bytes
cc4560d9 — Claire Change “privacy and reach” settings so that unchecking boxes always increase privacy and checking them always increase reach (#26508) 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
# 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