Files
baclight/db/seeds.rb
T
2025-12-10 13:22:33 -05:00

33 lines
907 B
Ruby
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
benefit_descriptions = ["Primary Visit",
"Specialist Visit",
"Urgent Care",
"INNInd Ded",
"INNFamily Ded",
"OONInd Ded",
"OONFamily Ded",
"Co-Insurance",
"INNInd OOP",
"INNFamily OOP",
"OONInd OOP",
"OONFamily OOP",
"Emergency Room",
"Preventive Care"]
default = IdCardBenefitsTemplate.create(title: "BLANK")
benefit_descriptions.each_with_index do |bene, i|
IdCardBenefit.create(sequence: i + 1, benefit_desc: bene, id_card_benefits_template: default)
end
temp_1 = IdCardBenefitsTemplate.create(title: "Rebekah's Template")
(1..14).each do |seq|
IdCardBenefit.create(sequence: seq, benefit: "greatest hits vol #{seq}", id_card_benefits_template: temp_1)
end
temp_2 = IdCardBenefitsTemplate.create(title: "Jason's Template")
(1..14).each do |seq|
IdCardBenefit.create(sequence: seq, benefit: "#{seq} hit wonder", id_card_benefits_template: temp_2)
end