mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
Update Gemfile.lock and schema to reflect later version
This commit is contained in:
parent
d2bdec3d37
commit
928341302c
3 changed files with 204 additions and 199 deletions
|
|
@ -100,6 +100,7 @@ GEM
|
||||||
jwt (1.5.6)
|
jwt (1.5.6)
|
||||||
launchy (2.5.0)
|
launchy (2.5.0)
|
||||||
addressable (~> 2.7)
|
addressable (~> 2.7)
|
||||||
|
libv8 (3.16.14.19)
|
||||||
libv8 (3.16.14.19-x86_64-linux)
|
libv8 (3.16.14.19-x86_64-linux)
|
||||||
listen (3.0.8)
|
listen (3.0.8)
|
||||||
rb-fsevent (~> 0.9, >= 0.9.4)
|
rb-fsevent (~> 0.9, >= 0.9.4)
|
||||||
|
|
@ -116,6 +117,8 @@ GEM
|
||||||
nested_scaffold (1.1.0)
|
nested_scaffold (1.1.0)
|
||||||
newrelic_rpm (8.0.0)
|
newrelic_rpm (8.0.0)
|
||||||
nio4r (2.5.8)
|
nio4r (2.5.8)
|
||||||
|
nokogiri (1.12.4-x86_64-darwin)
|
||||||
|
racc (~> 1.4)
|
||||||
nokogiri (1.12.4-x86_64-linux)
|
nokogiri (1.12.4-x86_64-linux)
|
||||||
racc (~> 1.4)
|
racc (~> 1.4)
|
||||||
omniauth (2.0.4)
|
omniauth (2.0.4)
|
||||||
|
|
@ -248,6 +251,7 @@ GEM
|
||||||
nokogiri (~> 1.8)
|
nokogiri (~> 1.8)
|
||||||
|
|
||||||
PLATFORMS
|
PLATFORMS
|
||||||
|
x86_64-darwin-20
|
||||||
x86_64-linux
|
x86_64-linux
|
||||||
|
|
||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
@import 'colors';
|
||||||
|
|
||||||
.font-bitter {
|
.font-bitter {
|
||||||
font-family: 'Bitter', serif;
|
font-family: 'Bitter', serif;
|
||||||
|
|
|
||||||
398
db/schema.rb
398
db/schema.rb
|
|
@ -15,258 +15,258 @@ ActiveRecord::Schema.define(version: 20210923113404) 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"
|
||||||
|
|
||||||
create_table "academic_years", force: :cascade do |t|
|
create_table "academic_years", id: :serial, force: :cascade do |t|
|
||||||
t.string "range", null: false
|
t.string "range", null: false
|
||||||
t.index ["range"], name: "index_academic_years_on_range", unique: true, using: :btree
|
t.index ["range"], name: "index_academic_years_on_range", unique: true
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "attempts", force: :cascade do |t|
|
create_table "attempts", id: :serial, force: :cascade do |t|
|
||||||
t.integer "recipient_id"
|
t.integer "recipient_id"
|
||||||
t.integer "schedule_id"
|
t.integer "schedule_id"
|
||||||
t.integer "recipient_schedule_id"
|
t.integer "recipient_schedule_id"
|
||||||
t.datetime "sent_at"
|
t.datetime "sent_at"
|
||||||
t.datetime "responded_at"
|
t.datetime "responded_at"
|
||||||
t.integer "question_id"
|
t.integer "question_id"
|
||||||
t.integer "translation_id"
|
t.integer "translation_id"
|
||||||
t.integer "answer_index"
|
t.integer "answer_index"
|
||||||
t.integer "open_response_id"
|
t.integer "open_response_id"
|
||||||
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.text "twilio_details"
|
t.text "twilio_details"
|
||||||
t.string "twilio_sid"
|
t.string "twilio_sid"
|
||||||
t.integer "student_id"
|
t.integer "student_id"
|
||||||
t.index ["twilio_sid"], name: "index_attempts_on_twilio_sid", using: :btree
|
t.index ["twilio_sid"], name: "index_attempts_on_twilio_sid"
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "categories", force: :cascade do |t|
|
create_table "categories", id: :serial, force: :cascade do |t|
|
||||||
t.string "name"
|
t.string "name"
|
||||||
t.string "blurb"
|
t.string "blurb"
|
||||||
t.text "description"
|
t.text "description"
|
||||||
t.string "external_id"
|
t.string "external_id"
|
||||||
t.integer "parent_category_id"
|
t.integer "parent_category_id"
|
||||||
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 "slug"
|
t.string "slug"
|
||||||
t.float "benchmark"
|
t.float "benchmark"
|
||||||
t.string "benchmark_description"
|
t.string "benchmark_description"
|
||||||
t.string "zones"
|
t.string "zones"
|
||||||
t.index ["slug"], name: "index_categories_on_slug", unique: true, using: :btree
|
t.index ["slug"], name: "index_categories_on_slug", unique: true
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "districts", force: :cascade do |t|
|
create_table "districts", id: :serial, force: :cascade do |t|
|
||||||
t.string "name"
|
t.string "name"
|
||||||
t.integer "state_id"
|
t.integer "state_id"
|
||||||
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 "slug"
|
t.string "slug"
|
||||||
t.integer "qualtrics_code"
|
t.integer "qualtrics_code"
|
||||||
t.index ["slug"], name: "index_districts_on_slug", unique: true, using: :btree
|
t.index ["slug"], name: "index_districts_on_slug", unique: true
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "measures", force: :cascade do |t|
|
create_table "measures", id: :serial, force: :cascade do |t|
|
||||||
t.string "measure_id", null: false
|
t.string "measure_id", null: false
|
||||||
t.string "name"
|
t.string "name"
|
||||||
t.float "watch_low_benchmark", null: false
|
t.float "watch_low_benchmark", null: false
|
||||||
t.float "growth_low_benchmark", null: false
|
t.float "growth_low_benchmark", null: false
|
||||||
t.float "approval_low_benchmark", null: false
|
t.float "approval_low_benchmark", null: false
|
||||||
t.float "ideal_low_benchmark", null: false
|
t.float "ideal_low_benchmark", null: false
|
||||||
t.integer "subcategory_id", null: false
|
t.integer "subcategory_id", null: false
|
||||||
t.index ["measure_id"], name: "index_measures_on_measure_id", using: :btree
|
t.index ["measure_id"], name: "index_measures_on_measure_id"
|
||||||
t.index ["subcategory_id"], name: "index_measures_on_subcategory_id", using: :btree
|
t.index ["subcategory_id"], name: "index_measures_on_subcategory_id"
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "question_lists", force: :cascade do |t|
|
create_table "question_lists", id: :serial, force: :cascade do |t|
|
||||||
t.string "name"
|
t.string "name"
|
||||||
t.text "description"
|
t.text "description"
|
||||||
t.text "question_ids"
|
t.text "question_ids"
|
||||||
t.datetime "created_at", null: false
|
t.datetime "created_at", null: false
|
||||||
t.datetime "updated_at", null: false
|
t.datetime "updated_at", null: false
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "questions", force: :cascade do |t|
|
create_table "questions", id: :serial, force: :cascade do |t|
|
||||||
t.string "text"
|
t.string "text"
|
||||||
t.string "option1"
|
t.string "option1"
|
||||||
t.string "option2"
|
t.string "option2"
|
||||||
t.string "option3"
|
t.string "option3"
|
||||||
t.string "option4"
|
t.string "option4"
|
||||||
t.string "option5"
|
t.string "option5"
|
||||||
t.integer "category_id"
|
t.integer "category_id"
|
||||||
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 "target_group", default: 0
|
t.integer "target_group", default: 0
|
||||||
t.boolean "for_recipient_students", default: false
|
t.boolean "for_recipient_students", default: false
|
||||||
t.boolean "reverse", default: false
|
t.boolean "reverse", default: false
|
||||||
t.string "external_id"
|
t.string "external_id"
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "recipient_lists", force: :cascade do |t|
|
create_table "recipient_lists", id: :serial, force: :cascade do |t|
|
||||||
t.integer "school_id"
|
t.integer "school_id"
|
||||||
t.string "name"
|
t.string "name"
|
||||||
t.text "description"
|
t.text "description"
|
||||||
t.text "recipient_ids"
|
t.text "recipient_ids"
|
||||||
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.index ["school_id"], name: "index_recipient_lists_on_school_id", using: :btree
|
t.index ["school_id"], name: "index_recipient_lists_on_school_id"
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "recipient_schedules", force: :cascade do |t|
|
create_table "recipient_schedules", id: :serial, force: :cascade do |t|
|
||||||
t.integer "recipient_id"
|
t.integer "recipient_id"
|
||||||
t.integer "schedule_id"
|
t.integer "schedule_id"
|
||||||
t.text "upcoming_question_ids"
|
t.text "upcoming_question_ids"
|
||||||
t.text "attempted_question_ids"
|
t.text "attempted_question_ids"
|
||||||
t.datetime "last_attempt_at"
|
t.datetime "last_attempt_at"
|
||||||
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.datetime "next_attempt_at"
|
t.datetime "next_attempt_at"
|
||||||
t.string "queued_question_ids"
|
t.string "queued_question_ids"
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "recipients", force: :cascade do |t|
|
create_table "recipients", id: :serial, force: :cascade do |t|
|
||||||
t.string "name"
|
t.string "name"
|
||||||
t.string "phone"
|
t.string "phone"
|
||||||
t.date "birth_date"
|
t.date "birth_date"
|
||||||
t.string "gender"
|
t.string "gender"
|
||||||
t.string "race"
|
t.string "race"
|
||||||
t.string "ethnicity"
|
t.string "ethnicity"
|
||||||
t.integer "home_language_id"
|
t.integer "home_language_id"
|
||||||
t.string "income"
|
t.string "income"
|
||||||
t.boolean "opted_out", default: false
|
t.boolean "opted_out", default: false
|
||||||
t.integer "school_id"
|
t.integer "school_id"
|
||||||
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 "email"
|
t.string "email"
|
||||||
t.string "slug"
|
t.string "slug"
|
||||||
t.integer "attempts_count", default: 0
|
t.integer "attempts_count", default: 0
|
||||||
t.integer "responses_count", default: 0
|
t.integer "responses_count", default: 0
|
||||||
t.string "teacher"
|
t.string "teacher"
|
||||||
t.index ["phone"], name: "index_recipients_on_phone", using: :btree
|
t.index ["phone"], name: "index_recipients_on_phone"
|
||||||
t.index ["slug"], name: "index_recipients_on_slug", unique: true, using: :btree
|
t.index ["slug"], name: "index_recipients_on_slug", unique: true
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "schedules", force: :cascade do |t|
|
create_table "schedules", id: :serial, force: :cascade do |t|
|
||||||
t.integer "school_id"
|
t.integer "school_id"
|
||||||
t.string "name"
|
t.string "name"
|
||||||
t.text "description"
|
t.text "description"
|
||||||
t.integer "frequency_hours", default: 24
|
t.integer "frequency_hours", default: 24
|
||||||
t.date "start_date"
|
t.date "start_date"
|
||||||
t.date "end_date"
|
t.date "end_date"
|
||||||
t.boolean "active", default: true
|
t.boolean "active", default: true
|
||||||
t.boolean "random", default: false
|
t.boolean "random", default: false
|
||||||
t.integer "recipient_list_id"
|
t.integer "recipient_list_id"
|
||||||
t.integer "question_list_id"
|
t.integer "question_list_id"
|
||||||
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 "time", default: 960
|
t.integer "time", default: 960
|
||||||
t.index ["school_id"], name: "index_schedules_on_school_id", using: :btree
|
t.index ["school_id"], name: "index_schedules_on_school_id"
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "school_categories", force: :cascade do |t|
|
create_table "school_categories", id: :serial, force: :cascade do |t|
|
||||||
t.integer "school_id"
|
t.integer "school_id"
|
||||||
t.integer "category_id"
|
t.integer "category_id"
|
||||||
t.integer "attempt_count", default: 0
|
t.integer "attempt_count", default: 0
|
||||||
t.integer "response_count", default: 0
|
t.integer "response_count", default: 0
|
||||||
t.integer "answer_index_total", default: 0
|
t.integer "answer_index_total", default: 0
|
||||||
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.float "nonlikert"
|
t.float "nonlikert"
|
||||||
t.float "zscore"
|
t.float "zscore"
|
||||||
t.string "year"
|
t.string "year"
|
||||||
t.integer "valid_child_count"
|
t.integer "valid_child_count"
|
||||||
t.integer "response_rate"
|
t.integer "response_rate"
|
||||||
t.index ["category_id"], name: "index_school_categories_on_category_id", using: :btree
|
t.index ["category_id"], name: "index_school_categories_on_category_id"
|
||||||
t.index ["school_id"], name: "index_school_categories_on_school_id", using: :btree
|
t.index ["school_id"], name: "index_school_categories_on_school_id"
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "school_questions", force: :cascade do |t|
|
create_table "school_questions", id: :serial, force: :cascade do |t|
|
||||||
t.integer "school_id"
|
t.integer "school_id"
|
||||||
t.integer "question_id"
|
t.integer "question_id"
|
||||||
t.integer "school_category_id"
|
t.integer "school_category_id"
|
||||||
t.integer "attempt_count"
|
t.integer "attempt_count"
|
||||||
t.integer "response_count"
|
t.integer "response_count"
|
||||||
t.float "response_rate"
|
t.float "response_rate"
|
||||||
t.string "year"
|
t.string "year"
|
||||||
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 "response_total"
|
t.integer "response_total"
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "schools", force: :cascade do |t|
|
create_table "schools", id: :serial, force: :cascade do |t|
|
||||||
t.string "name"
|
t.string "name"
|
||||||
t.integer "district_id"
|
t.integer "district_id"
|
||||||
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.text "description"
|
t.text "description"
|
||||||
t.string "slug"
|
t.string "slug"
|
||||||
t.integer "student_count"
|
t.integer "student_count"
|
||||||
t.integer "teacher_count"
|
t.integer "teacher_count"
|
||||||
t.integer "qualtrics_code"
|
t.integer "qualtrics_code"
|
||||||
t.index ["slug"], name: "index_schools_on_slug", unique: true, using: :btree
|
t.index ["slug"], name: "index_schools_on_slug", unique: true
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "sqm_categories", force: :cascade do |t|
|
create_table "sqm_categories", id: :serial, force: :cascade do |t|
|
||||||
t.string "name"
|
t.string "name"
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "students", force: :cascade do |t|
|
create_table "students", id: :serial, force: :cascade do |t|
|
||||||
t.string "name"
|
t.string "name"
|
||||||
t.string "teacher"
|
t.string "teacher"
|
||||||
t.date "birthdate"
|
t.date "birthdate"
|
||||||
t.string "gender"
|
t.string "gender"
|
||||||
t.string "age"
|
t.string "age"
|
||||||
t.string "ethnicity"
|
t.string "ethnicity"
|
||||||
t.integer "recipient_id"
|
t.integer "recipient_id"
|
||||||
t.datetime "created_at", null: false
|
t.datetime "created_at", null: false
|
||||||
t.datetime "updated_at", null: false
|
t.datetime "updated_at", null: false
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "subcategories", force: :cascade do |t|
|
create_table "subcategories", id: :serial, force: :cascade do |t|
|
||||||
t.string "name"
|
t.string "name"
|
||||||
t.integer "sqm_category_id"
|
t.integer "sqm_category_id"
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "survey_item_responses", force: :cascade do |t|
|
create_table "survey_item_responses", id: :serial, force: :cascade do |t|
|
||||||
t.integer "likert_score"
|
t.integer "likert_score"
|
||||||
t.integer "school_id", null: false
|
t.integer "school_id", null: false
|
||||||
t.integer "survey_item_id", null: false
|
t.integer "survey_item_id", null: false
|
||||||
t.string "response_id", null: false
|
t.string "response_id", null: false
|
||||||
t.integer "academic_year_id", null: false
|
t.integer "academic_year_id", null: false
|
||||||
t.index ["academic_year_id"], name: "index_survey_item_responses_on_academic_year_id", using: :btree
|
t.index ["academic_year_id"], name: "index_survey_item_responses_on_academic_year_id"
|
||||||
t.index ["response_id"], name: "index_survey_item_responses_on_response_id", using: :btree
|
t.index ["response_id"], name: "index_survey_item_responses_on_response_id"
|
||||||
t.index ["school_id"], name: "index_survey_item_responses_on_school_id", using: :btree
|
t.index ["school_id"], name: "index_survey_item_responses_on_school_id"
|
||||||
t.index ["survey_item_id"], name: "index_survey_item_responses_on_survey_item_id", using: :btree
|
t.index ["survey_item_id"], name: "index_survey_item_responses_on_survey_item_id"
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "survey_items", force: :cascade do |t|
|
create_table "survey_items", id: :serial, force: :cascade do |t|
|
||||||
t.integer "measure_id", null: false
|
t.integer "measure_id", null: false
|
||||||
t.string "survey_item_id", null: false
|
t.string "survey_item_id", null: false
|
||||||
t.string "prompt"
|
t.string "prompt"
|
||||||
t.index ["measure_id"], name: "index_survey_items_on_measure_id", using: :btree
|
t.index ["measure_id"], name: "index_survey_items_on_measure_id"
|
||||||
t.index ["survey_item_id"], name: "index_survey_items_on_survey_item_id", using: :btree
|
t.index ["survey_item_id"], name: "index_survey_items_on_survey_item_id"
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "user_schools", force: :cascade do |t|
|
create_table "user_schools", id: :serial, force: :cascade do |t|
|
||||||
t.integer "user_id"
|
t.integer "user_id"
|
||||||
t.integer "school_id"
|
t.integer "school_id"
|
||||||
t.integer "district_id"
|
t.integer "district_id"
|
||||||
t.datetime "created_at", null: false
|
t.datetime "created_at", null: false
|
||||||
t.datetime "updated_at", null: false
|
t.datetime "updated_at", null: false
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "users", force: :cascade do |t|
|
create_table "users", id: :serial, force: :cascade do |t|
|
||||||
t.string "email", default: "", null: false
|
t.string "email", default: "", null: false
|
||||||
t.string "encrypted_password", default: "", null: false
|
t.string "encrypted_password", default: "", null: false
|
||||||
t.string "reset_password_token"
|
t.string "reset_password_token"
|
||||||
t.datetime "reset_password_sent_at"
|
t.datetime "reset_password_sent_at"
|
||||||
t.datetime "remember_created_at"
|
t.datetime "remember_created_at"
|
||||||
t.integer "sign_in_count", default: 0, null: false
|
t.integer "sign_in_count", default: 0, null: false
|
||||||
t.datetime "current_sign_in_at"
|
t.datetime "current_sign_in_at"
|
||||||
t.datetime "last_sign_in_at"
|
t.datetime "last_sign_in_at"
|
||||||
t.inet "current_sign_in_ip"
|
t.inet "current_sign_in_ip"
|
||||||
t.inet "last_sign_in_ip"
|
t.inet "last_sign_in_ip"
|
||||||
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.index ["email"], name: "index_users_on_email", unique: true, using: :btree
|
t.index ["email"], name: "index_users_on_email", unique: true
|
||||||
t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true, using: :btree
|
t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true
|
||||||
end
|
end
|
||||||
|
|
||||||
add_foreign_key "measures", "subcategories"
|
add_foreign_key "measures", "subcategories"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue