demarches-normaliennes/db/migrate/20180424130548_add_parent_procedure_to_procedures.rb
2018-04-24 15:48:20 +02:00

5 lines
180 B
Ruby

class AddParentProcedureToProcedures < ActiveRecord::Migration[5.2]
def change
add_reference :procedures, :parent_procedure, foreign_key: { to_table: :procedures }
end
end