sqm-dashboards/db/migrate/20211217142634_add_benchmarks_to_survey_items.rb
Nelson Jovel ad03606d66 Add benchmarks to survey and admin data items. Remove them from measures. Modify seeder
Calculate benchmarks for measures based on a weighted average of survey
and admin data items

Added architectural records
2021-12-28 14:10:34 +01:00

8 lines
327 B
Ruby

class AddBenchmarksToSurveyItems < ActiveRecord::Migration[6.1]
def change
add_column :survey_items, :watch_low_benchmark, :float
add_column :survey_items, :growth_low_benchmark, :float
add_column :survey_items, :approval_low_benchmark, :float
add_column :survey_items, :ideal_low_benchmark, :float
end
end