sqm-dashboards/db/migrate/20220228165233_create_surveys.rb
rebuilt 286e74b651 Seed db with surveys to keep track of school, year, and survey type
Seed db with survey_item information to keep track of which survey_item is on the short form survey.  REcalculate response rate depending on whether school to regular survey or short form survey.

Correct score for short form schools.  Finishes #181284202
2022-03-03 10:44:41 +01:00

11 lines
282 B
Ruby

class CreateSurveys < ActiveRecord::Migration[7.0]
def change
create_table :surveys do |t|
t.integer :form
t.references :academic_year, null: false, foreign_key: true
t.references :school, null: false, foreign_key: true
t.timestamps
end
end
end