|
|
|
@ -10,7 +10,7 @@
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# It's strongly recommended that you check this file into your version control system.
|
|
|
|
# It's strongly recommended that you check this file into your version control system.
|
|
|
|
|
|
|
|
|
|
|
|
ActiveRecord::Schema[7.0].define(version: 2022_06_14_211616) do
|
|
|
|
ActiveRecord::Schema[7.0].define(version: 2022_06_16_220352) do
|
|
|
|
# These are extensions that must be enabled in order to support this database
|
|
|
|
# These are extensions that must be enabled in order to support this database
|
|
|
|
enable_extension "plpgsql"
|
|
|
|
enable_extension "plpgsql"
|
|
|
|
|
|
|
|
|
|
|
|
@ -57,6 +57,7 @@ ActiveRecord::Schema[7.0].define(version: 2022_06_14_211616) do
|
|
|
|
t.datetime "updated_at", null: false
|
|
|
|
t.datetime "updated_at", null: false
|
|
|
|
t.string "category_id", null: false
|
|
|
|
t.string "category_id", null: false
|
|
|
|
t.string "short_description"
|
|
|
|
t.string "short_description"
|
|
|
|
|
|
|
|
t.integer "subcategories_count"
|
|
|
|
t.index ["slug"], name: "index_categories_on_slug", unique: true
|
|
|
|
t.index ["slug"], name: "index_categories_on_slug", unique: true
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
@ -283,6 +284,7 @@ ActiveRecord::Schema[7.0].define(version: 2022_06_14_211616) do
|
|
|
|
t.text "description"
|
|
|
|
t.text "description"
|
|
|
|
t.datetime "created_at", null: false
|
|
|
|
t.datetime "created_at", null: false
|
|
|
|
t.datetime "updated_at", null: false
|
|
|
|
t.datetime "updated_at", null: false
|
|
|
|
|
|
|
|
t.integer "scales_count"
|
|
|
|
t.index ["measure_id"], name: "index_measures_on_measure_id"
|
|
|
|
t.index ["measure_id"], name: "index_measures_on_measure_id"
|
|
|
|
t.index ["subcategory_id"], name: "index_measures_on_subcategory_id"
|
|
|
|
t.index ["subcategory_id"], name: "index_measures_on_subcategory_id"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
@ -319,6 +321,7 @@ ActiveRecord::Schema[7.0].define(version: 2022_06_14_211616) do
|
|
|
|
t.bigint "measure_id", null: false
|
|
|
|
t.bigint "measure_id", null: false
|
|
|
|
t.datetime "created_at", null: false
|
|
|
|
t.datetime "created_at", null: false
|
|
|
|
t.datetime "updated_at", null: false
|
|
|
|
t.datetime "updated_at", null: false
|
|
|
|
|
|
|
|
t.integer "survey_items_count"
|
|
|
|
t.index ["measure_id"], name: "index_scales_on_measure_id"
|
|
|
|
t.index ["measure_id"], name: "index_scales_on_measure_id"
|
|
|
|
t.index ["scale_id"], name: "index_scales_on_scale_id", unique: true
|
|
|
|
t.index ["scale_id"], name: "index_scales_on_scale_id", unique: true
|
|
|
|
end
|
|
|
|
end
|
|
|
|
@ -343,6 +346,7 @@ ActiveRecord::Schema[7.0].define(version: 2022_06_14_211616) do
|
|
|
|
t.datetime "created_at", null: false
|
|
|
|
t.datetime "created_at", null: false
|
|
|
|
t.datetime "updated_at", null: false
|
|
|
|
t.datetime "updated_at", null: false
|
|
|
|
t.string "subcategory_id", null: false
|
|
|
|
t.string "subcategory_id", null: false
|
|
|
|
|
|
|
|
t.integer "measures_count"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
create_table "survey_item_responses", id: :serial, force: :cascade do |t|
|
|
|
|
create_table "survey_item_responses", id: :serial, force: :cascade do |t|
|
|
|
|
@ -371,6 +375,7 @@ ActiveRecord::Schema[7.0].define(version: 2022_06_14_211616) do
|
|
|
|
t.float "ideal_low_benchmark"
|
|
|
|
t.float "ideal_low_benchmark"
|
|
|
|
t.bigint "scale_id", null: false
|
|
|
|
t.bigint "scale_id", null: false
|
|
|
|
t.boolean "on_short_form", default: false
|
|
|
|
t.boolean "on_short_form", default: false
|
|
|
|
|
|
|
|
t.integer "survey_item_responses_count"
|
|
|
|
t.index ["scale_id"], name: "index_survey_items_on_scale_id"
|
|
|
|
t.index ["scale_id"], name: "index_survey_items_on_scale_id"
|
|
|
|
t.index ["survey_item_id"], name: "index_survey_items_on_survey_item_id"
|
|
|
|
t.index ["survey_item_id"], name: "index_survey_items_on_survey_item_id"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|