The code powering m.abunchtell.com https://m.abunchtell.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

9 lines
316 B

  1. class AddScheduledStatusIdToMediaAttachments < ActiveRecord::Migration[5.2]
  2. disable_ddl_transaction!
  3. def change
  4. add_reference :media_attachments, :scheduled_status, foreign_key: { on_delete: :nullify }, index: false
  5. add_index :media_attachments, :scheduled_status_id, algorithm: :concurrently
  6. end
  7. end