demarches-normaliennes/db/migrate/20240321081721_remove_champs_foreign_key.rb

9 lines
202 B
Ruby
Raw Normal View History

2024-09-27 15:44:57 +02:00
# frozen_string_literal: true
class RemoveChampsForeignKey < ActiveRecord::Migration[7.0]
def change
remove_foreign_key :champs, column: :parent_id
remove_index :champs, :parent_id
end
end