Add folders to the documents plugin

This commit is contained in:
Patrick Gansterer 2017-11-08 22:35:12 +01:00
parent 611a29fe2d
commit dc94e98138
19 changed files with 141 additions and 71 deletions

View file

@ -0,0 +1,5 @@
class AddParentToDocument < ActiveRecord::Migration
def change
add_reference :documents, :parent, index: true
end
end

View file

@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20171002000000) do
ActiveRecord::Schema.define(version: 20171110000000) do
create_table "article_categories", force: :cascade do |t|
t.string "name", limit: 255, default: "", null: false
@ -83,8 +83,11 @@ ActiveRecord::Schema.define(version: 20171002000000) do
t.integer "created_by_user_id"
t.datetime "created_at"
t.datetime "updated_at"
t.integer "parent_id"
end
add_index "documents", ["parent_id"], name: "index_documents_on_parent_id", using: :btree
create_table "financial_link", force: :cascade do |t|
t.text "note"
end