Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 
 
 

49 рядки
1.8 KiB

  1. # This file is auto-generated from the current state of the database. Instead
  2. # of editing this file, please use the migrations feature of Active Record to
  3. # incrementally modify your database, and then regenerate this schema definition.
  4. #
  5. # Note that this schema.rb definition is the authoritative source for your
  6. # database schema. If you need to create the application database on another
  7. # system, you should be using db:schema:load, not running all the migrations
  8. # from scratch. The latter is a flawed and unsustainable approach (the more migrations
  9. # you'll amass, the slower it'll run and the greater likelihood for issues).
  10. #
  11. # It's strongly recommended that you check this file into your version control system.
  12. ActiveRecord::Schema.define(version: 20161124174721) do
  13. create_table "documents", force: :cascade do |t|
  14. t.string "name"
  15. t.datetime "created_at", null: false
  16. t.datetime "updated_at", null: false
  17. t.string "doc_file_name"
  18. t.string "doc_content_type"
  19. t.integer "doc_file_size"
  20. t.datetime "doc_updated_at"
  21. t.string "doc_fingerprint"
  22. t.integer "user_id"
  23. t.index ["doc_fingerprint"], name: "index_documents_on_doc_fingerprint"
  24. t.index ["user_id"], name: "index_documents_on_user_id"
  25. end
  26. create_table "documents_tags", id: false, force: :cascade do |t|
  27. t.integer "document_id", null: false
  28. t.integer "tag_id", null: false
  29. end
  30. create_table "tags", force: :cascade do |t|
  31. t.string "value"
  32. t.boolean "automatically_asigned"
  33. t.datetime "created_at", null: false
  34. t.datetime "updated_at", null: false
  35. end
  36. create_table "users", force: :cascade do |t|
  37. t.string "name"
  38. t.string "password_digest"
  39. t.datetime "created_at", null: false
  40. t.datetime "updated_at", null: false
  41. end
  42. end