mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
Add disaggregation by ELL
This commit is contained in:
parent
8b7d9b7fc6
commit
245cde85cd
45 changed files with 964 additions and 416 deletions
12
db/migrate/20230830213521_create_ell.rb
Normal file
12
db/migrate/20230830213521_create_ell.rb
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
class CreateEll < ActiveRecord::Migration[7.0]
|
||||
def change
|
||||
create_table :ells do |t|
|
||||
t.string :designation
|
||||
t.string :slug
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
add_index :ells, :designation, unique: true
|
||||
end
|
||||
end
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
class AddEllToSurveyItemResponse < ActiveRecord::Migration[7.0]
|
||||
def change
|
||||
add_reference :survey_item_responses, :ell, 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_08_07_222503) do
|
||||
ActiveRecord::Schema[7.0].define(version: 2023_09_12_223701) do
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "pg_stat_statements"
|
||||
enable_extension "plpgsql"
|
||||
|
|
@ -70,6 +70,14 @@ ActiveRecord::Schema[7.0].define(version: 2023_08_07_222503) do
|
|||
t.datetime "updated_at", null: false
|
||||
end
|
||||
|
||||
create_table "ells", 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_ells_on_designation", unique: true
|
||||
end
|
||||
|
||||
create_table "genders", force: :cascade do |t|
|
||||
t.integer "qualtrics_code"
|
||||
t.string "designation"
|
||||
|
|
@ -439,7 +447,9 @@ ActiveRecord::Schema[7.0].define(version: 2023_08_07_222503) do
|
|||
t.bigint "gender_id"
|
||||
t.datetime "recorded_date"
|
||||
t.bigint "income_id"
|
||||
t.bigint "ell_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"
|
||||
t.index ["income_id"], name: "index_survey_item_responses_on_income_id"
|
||||
t.index ["response_id"], name: "index_survey_item_responses_on_response_id"
|
||||
|
|
@ -490,6 +500,7 @@ ActiveRecord::Schema[7.0].define(version: 2023_08_07_222503) do
|
|||
add_foreign_key "student_races", "students"
|
||||
add_foreign_key "subcategories", "categories"
|
||||
add_foreign_key "survey_item_responses", "academic_years"
|
||||
add_foreign_key "survey_item_responses", "ells"
|
||||
add_foreign_key "survey_item_responses", "genders"
|
||||
add_foreign_key "survey_item_responses", "incomes"
|
||||
add_foreign_key "survey_item_responses", "schools"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue