mastodon/db/migrate/20220303000827_add_ordered_media_attachment_ids_to_status_edits.rb
2023-11-06 16:15:48 +00:00

15 lines
443 B
Ruby

# frozen_string_literal: true
class AddOrderedMediaAttachmentIdsToStatusEdits < ActiveRecord::Migration[6.1]
def change
safety_assured do
change_table(:status_edits, bulk: true) do |t|
t.column :ordered_media_attachment_ids, :bigint, array: true
t.column :media_descriptions, :text, array: true
t.column :poll_options, :string, array: true
t.column :sensitive, :boolean
end
end
end
end