db/test_seeders/eligibilities/student_loans/importer.rb
def insert_eligibilities
          ::StudentLoans::Eligibility.copy_from_client ELIGIBILITY_COLUMNS do |copy|
            records.each do |data|
              time = Time.now.getutc

              subjects_taught ||= build_subjects_taught(data)
              copy << [
                1,
                schools_id,
                schools_id,
                0,
                true,
                subjects_taught[:biology_taught],
                subjects_taught[:chemistry_taught],
                subjects_taught[:physics_taught],
                subjects_taught[:computing_taught],
                subjects_taught[:languages_taught],
                # rand(4999),
                false,
                time,
                time
              ]
            end
          end
        end
# the existing version of the activerecord-copy gem does not support
# binary copy of decimals, so for now 'student_loan_repayment_amount' has been excluded
# to solve this we use the student_loan_repayment_amount method to update
# all of the student loans with a random value less than 5000
the existing version of the activerecord-copy gem does not support
binary copy of decimals, so for now 'student_loan_repayment_amount' has been excluded
to solve this we use the student_loan_repayment_amount method to update
all of the student loans with a random value less than 5000
the existing version of the activerecord - copy gem does not support binary copy of decimals so for now ' student_loan_repayment_amount ' has been excluded to solve this we use the student_loan_repayment_amount method to update all of the student loans with a random value less than 5000
def insert_eligibilities
          ::StudentLoans::Eligibility.copy_from_client ELIGIBILITY_COLUMNS do |copy|
            records.each do |data|
              time = Time.now.getutc
              subjects_taught ||= build_subjects_taught(data)
              copy << [
                1,
                schools_id,
                schools_id,
                0,
                true,
                subjects_taught[:biology_taught],
                subjects_taught[:chemistry_taught],
                subjects_taught[:physics_taught],
                subjects_taught[:computing_taught],
                subjects_taught[:languages_taught],
                false,
                time,
                time
              ]
            end
          end
        end
def insert_eligibilities :: StudentLoans :: Eligibility . copy_from_client ELIGIBILITY_COLUMNS do | copy | records . each do | data | time = Time . now . getutc subjects_taught ||= build_subjects_taught ( data ) copy << [ 1 , schools_id , schools_id , 0 , true , subjects_taught [ :biology_taught ] , subjects_taught [ :chemistry_taught ] , subjects_taught [ :physics_taught ] , subjects_taught [ :computing_taught ] , subjects_taught [ :languages_taught ] , false , time , time ] end end end
the existing version of the activerecord-copy gem does not support
binary copy of decimals, so for now 'student_loan_repayment_amount' has been excluded
to solve this we use the student_loan_repayment_amount method to update
all of the student loans with a random value less than 5000
the existing version of the activerecord - copy gem does not support binary copy of decimals so for now ' student_loan_repayment_amount ' has been excluded to solve this we use the student_loan_repayment_amount method to update all of the student loans with a random value less than 5000
# rand(4999),