Submit social housing lettings and sales data (CORE)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

6 lines
350 B

desc "Alter incref values for non imported lettings logs in the database"
task correct_incref_values: :environment do
LettingsLog.where(old_id: nil, net_income_known: 0).update_all(incref: 0)
LettingsLog.where(old_id: nil, net_income_known: 1).update_all(incref: 2)
LettingsLog.where(old_id: nil, net_income_known: 2).update_all(incref: 1)
end