foodsoft/plugins/documents/db/migrate/20171105000000_add_parent_to_document.rb
2017-11-21 10:12:13 +01:00

5 lines
126 B
Ruby

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