|
|
|
@ -13,6 +13,7 @@
|
|
|
|
ActiveRecord::Schema[8.0].define(version: 2025_01_15_011457) do
|
|
|
|
ActiveRecord::Schema[8.0].define(version: 2025_01_15_011457) 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 "pg_catalog.plpgsql"
|
|
|
|
enable_extension "pg_catalog.plpgsql"
|
|
|
|
|
|
|
|
enable_extension "pg_stat_statements"
|
|
|
|
|
|
|
|
|
|
|
|
create_table "academic_years", id: :serial, force: :cascade do |t|
|
|
|
|
create_table "academic_years", id: :serial, force: :cascade do |t|
|
|
|
|
t.string "range", null: false
|
|
|
|
t.string "range", null: false
|
|
|
|
@ -372,7 +373,6 @@ ActiveRecord::Schema[8.0].define(version: 2025_01_15_011457) do
|
|
|
|
t.datetime "updated_at", null: false
|
|
|
|
t.datetime "updated_at", null: false
|
|
|
|
t.index ["academic_year_id"], name: "index_response_rates_on_academic_year_id"
|
|
|
|
t.index ["academic_year_id"], name: "index_response_rates_on_academic_year_id"
|
|
|
|
t.index ["school_id", "subcategory_id"], name: "index_response_rates_on_school_id_and_subcategory_id"
|
|
|
|
t.index ["school_id", "subcategory_id"], name: "index_response_rates_on_school_id_and_subcategory_id"
|
|
|
|
t.index ["school_id"], name: "index_response_rates_on_school_id"
|
|
|
|
|
|
|
|
t.index ["subcategory_id"], name: "index_response_rates_on_subcategory_id"
|
|
|
|
t.index ["subcategory_id"], name: "index_response_rates_on_subcategory_id"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
@ -466,8 +466,8 @@ ActiveRecord::Schema[8.0].define(version: 2025_01_15_011457) do
|
|
|
|
t.bigint "student_id"
|
|
|
|
t.bigint "student_id"
|
|
|
|
t.integer "grade"
|
|
|
|
t.integer "grade"
|
|
|
|
t.bigint "gender_id"
|
|
|
|
t.bigint "gender_id"
|
|
|
|
t.bigint "income_id"
|
|
|
|
|
|
|
|
t.datetime "recorded_date"
|
|
|
|
t.datetime "recorded_date"
|
|
|
|
|
|
|
|
t.bigint "income_id"
|
|
|
|
t.bigint "ell_id"
|
|
|
|
t.bigint "ell_id"
|
|
|
|
t.bigint "sped_id"
|
|
|
|
t.bigint "sped_id"
|
|
|
|
t.bigint "parent_id"
|
|
|
|
t.bigint "parent_id"
|
|
|
|
@ -478,6 +478,7 @@ ActiveRecord::Schema[8.0].define(version: 2025_01_15_011457) do
|
|
|
|
t.index ["parent_id"], name: "index_survey_item_responses_on_parent_id"
|
|
|
|
t.index ["parent_id"], name: "index_survey_item_responses_on_parent_id"
|
|
|
|
t.index ["response_id"], name: "index_survey_item_responses_on_response_id"
|
|
|
|
t.index ["response_id"], name: "index_survey_item_responses_on_response_id"
|
|
|
|
t.index ["school_id", "academic_year_id", "survey_item_id"], name: "by_school_year_and_survey_item"
|
|
|
|
t.index ["school_id", "academic_year_id", "survey_item_id"], name: "by_school_year_and_survey_item"
|
|
|
|
|
|
|
|
t.index ["school_id", "academic_year_id"], name: "index_survey_item_responses_on_school_id_and_academic_year_id"
|
|
|
|
t.index ["school_id", "survey_item_id", "academic_year_id", "grade"], name: "index_survey_responses_on_grade"
|
|
|
|
t.index ["school_id", "survey_item_id", "academic_year_id", "grade"], name: "index_survey_responses_on_grade"
|
|
|
|
t.index ["sped_id"], name: "index_survey_item_responses_on_sped_id"
|
|
|
|
t.index ["sped_id"], name: "index_survey_item_responses_on_sped_id"
|
|
|
|
t.index ["student_id"], name: "index_survey_item_responses_on_student_id"
|
|
|
|
t.index ["student_id"], name: "index_survey_item_responses_on_student_id"
|
|
|
|
|