demarches-normaliennes/db/migrate/20180424130548_add_parent_procedure_to_procedures.rb

6 lines
180 B
Ruby
Raw Normal View History

2018-04-24 15:23:07 +02:00
class AddParentProcedureToProcedures < ActiveRecord::Migration[5.2]
def change
add_reference :procedures, :parent_procedure, foreign_key: { to_table: :procedures }
end
end