foodsoft/plugins/documents/db/migrate/20171105000000_add_parent_to_document.rb
2020-09-05 14:40:11 +02:00

5 lines
131 B
Ruby

class AddParentToDocument < ActiveRecord::Migration[4.2]
def change
add_reference :documents, :parent, index: true
end
end