demarches-normaliennes/db/migrate/20240321081721_remove_champs_foreign_key.rb
2024-10-15 11:42:36 +02:00

8 lines
202 B
Ruby

# 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