foodsoft/plugins/documents/db/migrate/20171105000000_add_parent_to_document.rb

6 lines
131 B
Ruby
Raw Normal View History

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