sqm-dashboards/app/models/gender.rb
rebuilt 4509c157fa Add automated data cleaning. Modify SurveyItemValues class to use regex
instead of hard coded values.  Produce a clean csv and a csv with all
the removed values and columns with reason for removal. Add script for
running cleaning for each project
2023-05-16 13:38:29 -07:00

5 lines
134 B
Ruby

class Gender < ApplicationRecord
scope :gender_hash, lambda {
all.map { |gender| [gender.qualtrics_code, gender] }.to_h
}
end