foodsoft/db/migrate/20171105000000_add_parent_to_document.foodsoft_documents_engine.rb

6 lines
126 B
Ruby
Raw Normal View History

2017-11-08 22:35:12 +01:00
class AddParentToDocument < ActiveRecord::Migration
def change
add_reference :documents, :parent, index: true
end
end