class CreateDuckrailsHeaders < ActiveRecord::Migration
  def change
    create_table :headers do |t|
      t.string :name, null: false
      t.string :value, null: false
      t.references :mock, index: true, foreign_key: true

      t.timestamps null: false
    end
  end
end

class CreateDuckrailsHeaders < ActiveRecord::Migration
  def change
    create_table :headers do |t|
      t.string :name, null: false
      t.string :value, null: false
      t.references :mock, index: true, foreign_key: { on_delete: :cascade }

      t.timestamps null: false
    end
  end
end

Delete headers on mock deletion.
Delete headers on mock deletion.