mirror of
https://github.com/edcommonwealth/Dashboard.git
synced 2026-03-07 21:38:14 -08:00
swap around schools and district to not be namespaced
This commit is contained in:
parent
865b7b17af
commit
7f69cda710
15 changed files with 67 additions and 57 deletions
|
|
@ -1,6 +1,6 @@
|
|||
class CreateDashboardDistricts < ActiveRecord::Migration[7.1]
|
||||
def change
|
||||
create_table :dashboard_districts do |t|
|
||||
create_table :districts do |t|
|
||||
t.string :name
|
||||
t.string :slug
|
||||
t.integer :qualtrics_code
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
class CreateDashboardSchools < ActiveRecord::Migration[7.1]
|
||||
def change
|
||||
create_table :dashboard_schools do |t|
|
||||
create_table :schools do |t|
|
||||
t.string :name
|
||||
t.references :dashboard_district, null: false, foreign_key: true
|
||||
t.references :district, null: false, foreign_key: true
|
||||
t.text :description
|
||||
t.string :slug
|
||||
t.integer :qualtrics_code
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ class CreateDashboardAdminDataValues < ActiveRecord::Migration[7.1]
|
|||
def change
|
||||
create_table :dashboard_admin_data_values do |t|
|
||||
t.float :likert_score
|
||||
t.references :dashboard_school, null: false, foreign_key: true
|
||||
t.references :school, null: false, foreign_key: true
|
||||
t.references :dashboard_admin_data_item, null: false, foreign_key: true
|
||||
t.references :dashboard_academic_year, null: false, foreign_key: true
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
class CreateDashboardRespondents < ActiveRecord::Migration[7.1]
|
||||
def change
|
||||
create_table :dashboard_respondents do |t|
|
||||
t.references :dashboard_school, null: false, foreign_key: true
|
||||
t.references :school, null: false, foreign_key: true
|
||||
t.references :dashboard_academic_year, null: false, foreign_key: true
|
||||
t.integer :total_students
|
||||
t.float :total_teachers
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ class CreateDashboardResponseRates < ActiveRecord::Migration[7.1]
|
|||
def change
|
||||
create_table :dashboard_response_rates do |t|
|
||||
t.references :dashboard_subcategory, null: false, foreign_key: true
|
||||
t.references :dashboard_school, null: false, foreign_key: true
|
||||
t.references :school, null: false, foreign_key: true
|
||||
t.references :dashboard_academic_year, null: false, foreign_key: true
|
||||
t.float :school_response_rate
|
||||
t.float :teacher_response_rate
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ class CreateDashboardSurveyItemResponses < ActiveRecord::Migration[7.1]
|
|||
def change
|
||||
create_table :dashboard_survey_item_responses do |t|
|
||||
t.integer :likert_score
|
||||
t.references :dashboard_school, null: false, foreign_key: true
|
||||
t.references :school, null: false, foreign_key: true
|
||||
t.references :dashboard_survey_item, null: false, foreign_key: true
|
||||
t.references :dashboard_academic_year, null: false, foreign_key: true
|
||||
t.references :dashboard_student, foreign_key: true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue