# This file is auto-generated from the current state of the database. Instead # of editing this file, please use the migrations feature of Active Record to # incrementally modify your database, and then regenerate this schema definition. # # Note that this schema.rb definition is the authoritative source for your # database schema. If you need to create the application database on another # system, you should be using db:schema:load, not running all the migrations # from scratch. The latter is a flawed and unsustainable approach (the more migrations # you'll amass, the slower it'll run and the greater likelihood for issues). # # It's strongly recommended that you check this file into your version control system. ActiveRecord::Schema.define(version: 20161124223446) do create_table "categories", force: :cascade do |t| t.string "name" t.integer "parent_id" t.datetime "created_at", null: false t.datetime "updated_at", null: false t.integer "user_id" t.index ["parent_id"], name: "index_categories_on_parent_id" t.index ["user_id"], name: "index_categories_on_user_id" end create_table "documents", force: :cascade do |t| t.string "name" t.datetime "created_at", null: false t.datetime "updated_at", null: false t.string "doc_file_name" t.string "doc_content_type" t.integer "doc_file_size" t.datetime "doc_updated_at" t.string "doc_fingerprint" t.integer "user_id" t.integer "category_id" t.index ["category_id"], name: "index_documents_on_category_id" t.index ["doc_fingerprint"], name: "index_documents_on_doc_fingerprint" t.index ["user_id"], name: "index_documents_on_user_id" end create_table "documents_tags", id: false, force: :cascade do |t| t.integer "document_id", null: false t.integer "tag_id", null: false end create_table "tags", force: :cascade do |t| t.string "value" t.boolean "automatically_asigned" t.datetime "created_at", null: false t.datetime "updated_at", null: false end create_table "users", force: :cascade do |t| t.string "name" t.string "password_digest" t.datetime "created_at", null: false t.datetime "updated_at", null: false end end