diff options
author | hellekin <hellekin@cepheide.org> | 2020-10-08 22:10:41 +0200 |
---|---|---|
committer | hellekin <hellekin@cepheide.org> | 2020-10-08 22:11:03 +0200 |
commit | 31850c6ca118b7828dbaa3ad1a87dab4287718f5 (patch) | |
tree | 7c0055b939a27eb2f38f42ca17ec671aeac4c221 /db/schema.rb | |
parent | 0ab4ac71cdfe8b7dcf768ca0b68c8ef53040f1a2 (diff) | |
download | incommon-map-31850c6ca118b7828dbaa3ad1a87dab4287718f5.tar.gz |
Add categories, sections, and import data
Diffstat (limited to 'db/schema.rb')
-rw-r--r-- | db/schema.rb | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/db/schema.rb b/db/schema.rb index 5a8bba7..16ba65c 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 2020_10_08_133300) do +ActiveRecord::Schema.define(version: 2020_10_08_190558) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -45,6 +45,8 @@ ActiveRecord::Schema.define(version: 2020_10_08_133300) do t.integer "sections_count", default: 0 t.datetime "created_at", precision: 6, null: false t.datetime "updated_at", precision: 6, null: false + t.integer "dewey_id" + t.index ["dewey_id"], name: "index_categories_on_dewey_id", unique: true t.index ["taxonomy_id"], name: "index_categories_on_taxonomy_id" end @@ -58,6 +60,11 @@ ActiveRecord::Schema.define(version: 2020_10_08_133300) do t.index ["uuid"], name: "index_resources_on_uuid", unique: true end + create_table "resources_sections", id: false, force: :cascade do |t| + t.bigint "resource_id", null: false + t.bigint "section_id", null: false + end + create_table "sections", force: :cascade do |t| t.string "name", limit: 64 t.string "summary", limit: 136 @@ -67,7 +74,9 @@ ActiveRecord::Schema.define(version: 2020_10_08_133300) do t.integer "rank", default: 0 t.datetime "created_at", precision: 6, null: false t.datetime "updated_at", precision: 6, null: false + t.integer "dewey_id" t.index ["category_id"], name: "index_sections_on_category_id" + t.index ["dewey_id"], name: "index_sections_on_dewey_id", unique: true end create_table "taxonomies", force: :cascade do |t| |