chore: update schools and districts to correct association between them

This commit is contained in:
Nelson Jovel 2024-01-05 12:46:51 -08:00
parent 3093d9236a
commit 0f525cf2e8
10 changed files with 12 additions and 28 deletions

View file

@ -1,7 +1,7 @@
class CreateDashboardRespondents < ActiveRecord::Migration[7.1]
def change
create_table :dashboard_respondents do |t|
t.references :school, null: false, foreign_key: true
t.references :dashboard_school, null: false, foreign_key: true
t.references :dashboard_academic_year, null: false, foreign_key: true
t.integer :total_students
t.float :total_teachers