This repository has been archived on 2024-07-31. You can view files and clone it, but cannot push or open issues or pull requests.
2023-07-12 03:47:08 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-01-05 06:43:28 -05:00
|
|
|
class AddScheduledStatusIdToMediaAttachments < ActiveRecord::Migration[5.2]
|
|
|
|
disable_ddl_transaction!
|
|
|
|
|
|
|
|
def change
|
2020-05-08 14:23:16 -04:00
|
|
|
safety_assured { add_reference :media_attachments, :scheduled_status, foreign_key: { on_delete: :nullify }, index: false }
|
2019-01-05 06:43:28 -05:00
|
|
|
add_index :media_attachments, :scheduled_status_id, algorithm: :concurrently
|
|
|
|
end
|
|
|
|
end
|