mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 13:38:18 -08:00
feat: add special education disaggregation
This commit is contained in:
parent
c582126d2a
commit
48e795fcfb
27 changed files with 399 additions and 62 deletions
12
db/migrate/20231004191828_create_speds.rb
Normal file
12
db/migrate/20231004191828_create_speds.rb
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
class CreateSpeds < ActiveRecord::Migration[7.0]
|
||||
def change
|
||||
create_table :speds do |t|
|
||||
t.string :designation
|
||||
t.string :slug
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
add_index :speds, :designation
|
||||
end
|
||||
end
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
class AddSpedToSurveyItemResponse < ActiveRecord::Migration[7.0]
|
||||
def change
|
||||
add_reference :survey_item_responses, :sped, foreign_key: true
|
||||
end
|
||||
end
|
||||
13
db/schema.rb
13
db/schema.rb
|
|
@ -10,7 +10,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema[7.0].define(version: 2023_09_12_223701) do
|
||||
ActiveRecord::Schema[7.0].define(version: 2023_10_04_211430) do
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
||||
|
|
@ -406,6 +406,14 @@ ActiveRecord::Schema[7.0].define(version: 2023_09_12_223701) do
|
|||
t.index ["school_id"], name: "index_scores_on_school_id"
|
||||
end
|
||||
|
||||
create_table "speds", force: :cascade do |t|
|
||||
t.string "designation"
|
||||
t.string "slug"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.index ["designation"], name: "index_speds_on_designation"
|
||||
end
|
||||
|
||||
create_table "student_races", force: :cascade do |t|
|
||||
t.bigint "student_id", null: false
|
||||
t.bigint "race_id", null: false
|
||||
|
|
@ -448,6 +456,7 @@ ActiveRecord::Schema[7.0].define(version: 2023_09_12_223701) do
|
|||
t.bigint "income_id"
|
||||
t.datetime "recorded_date"
|
||||
t.bigint "ell_id"
|
||||
t.bigint "sped_id"
|
||||
t.index ["academic_year_id"], name: "index_survey_item_responses_on_academic_year_id"
|
||||
t.index ["ell_id"], name: "index_survey_item_responses_on_ell_id"
|
||||
t.index ["gender_id"], name: "index_survey_item_responses_on_gender_id"
|
||||
|
|
@ -457,6 +466,7 @@ ActiveRecord::Schema[7.0].define(version: 2023_09_12_223701) do
|
|||
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"], name: "index_survey_item_responses_on_school_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 ["survey_item_id"], name: "index_survey_item_responses_on_survey_item_id"
|
||||
end
|
||||
|
|
@ -505,6 +515,7 @@ ActiveRecord::Schema[7.0].define(version: 2023_09_12_223701) do
|
|||
add_foreign_key "survey_item_responses", "genders"
|
||||
add_foreign_key "survey_item_responses", "incomes"
|
||||
add_foreign_key "survey_item_responses", "schools"
|
||||
add_foreign_key "survey_item_responses", "speds"
|
||||
add_foreign_key "survey_item_responses", "students"
|
||||
add_foreign_key "survey_item_responses", "survey_items"
|
||||
add_foreign_key "survey_items", "scales"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue