mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-08-18 05:54:57 +00:00
9 lines
335 B
Ruby
9 lines
335 B
Ruby
class AddScheduledStatusIdToMediaAttachments < ActiveRecord::Migration[5.2]
|
|
disable_ddl_transaction!
|
|
|
|
def change
|
|
safety_assured { add_reference :media_attachments, :scheduled_status, foreign_key: { on_delete: :nullify }, index: false }
|
|
add_index :media_attachments, :scheduled_status_id, algorithm: :concurrently
|
|
end
|
|
end
|