foodsoft/db/migrate/20171105000000_add_parent_t...

6 lines
131 B
Ruby

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