mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
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
11 lines
282 B
Ruby
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
|