mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
Calculate benchmarks for measures based on a weighted average of survey and admin data items Added architectural records
19 lines
661 B
Ruby
19 lines
661 B
Ruby
class RemoveNullConstraintsFromMeasureBenchmarks < ActiveRecord::Migration[6.1]
|
|
def up
|
|
change_table :measures do |t|
|
|
t.change :watch_low_benchmark, :float, null: true
|
|
t.change :growth_low_benchmark, :float, null: true
|
|
t.change :approval_low_benchmark, :float, null: true
|
|
t.change :ideal_low_benchmark, :float, null: true
|
|
end
|
|
end
|
|
|
|
def down
|
|
change_table :measures do |t|
|
|
t.change :watch_low_benchmark, :float, null: false
|
|
t.change :growth_low_benchmark, :float, null: false
|
|
t.change :approval_low_benchmark, :float, null: false
|
|
t.change :ideal_low_benchmark, :float, null: false
|
|
end
|
|
end
|
|
end
|