Created
September 19, 2011 14:59
-
-
Save samshull/1226694 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BenefitTemplate.where(:benefit_id => TERRORISM_ID).each { |bt| bt.update_attributes! :calculator_class => 'Terrorism' } | |
BenefitTemplate.where(:benefit_id => EMPLOYMENT_LAYOFF_ID).each { |bt| bt.update_attributes! :calculator_class => 'EmploymentLayoff' } | |
BenefitTemplate.where(:benefit_id => MEDICAL_EVACUATION_ID).each { |bt| bt.update_attributes! :calculator_class => 'MedicalEvacuationAndRepatriation' } | |
BenefitTemplate.where(:benefit_id => CANCEL_FOR_WORK_REASONS_ID).each { |bt| bt.update_attributes! :calculator_class => 'CancelForWorkReasons' } | |
BenefitTemplate.where(:benefit_id => HOME_COUNTRY_ID).each { |bt| bt.update_attributes! :calculator_class => 'HomeCountryCoverage' } | |
BenefitTemplate.where(:benefit_id => FINANCIAL_DEFAULT_ID).each { |bt| bt.update_attributes! :calculator_class => 'FinancialDefault' } | |
BenefitTemplate.find(134).update_attributes! :calculator_class => 'FinancialDefaultAfterWait' | |
BenefitTemplate.find(135).update_attributes! :calculator_class => 'FinancialDefaultPurchasedWithinDaysOfTripDeposit' | |
BenefitTemplate.find(136).update_attributes! :calculator_class => 'FinancialDefaultAfterWaitIfPurchasedBeforeFinalTripPayment' | |
BenefitTemplate.find(137).update_attributes! :calculator_class => 'FinancialDefaultAfterWaitIfPurchasedWithinDaysOfTripDeposit' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment