Procedure: add parent_procedure

This commit is contained in:
simon lehericey 2018-04-24 15:23:07 +02:00
parent 28ce027025
commit 9d0b568ef5
4 changed files with 17 additions and 2 deletions

View file

@ -0,0 +1,5 @@
class AddParentProcedureToProcedures < ActiveRecord::Migration[5.2]
def change
add_reference :procedures, :parent_procedure, foreign_key: { to_table: :procedures }
end
end