aboutsummaryrefslogtreecommitdiff
path: root/db/schema.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/schema.rb')
-rw-r--r--db/schema.rb11
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|