foodsoft/db/migrate/20171105000000_add_parent_to_document.foodsoft_documents_engine.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