Browse Source

CLDC-1553 Added migration to change referral values of 0 to 1 for lettings logs (#864)

pull/869/head
David May-Miller 2 years ago committed by GitHub
parent
commit
30da40eed7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      lib/tasks/correct_referral_value.rake

4
lib/tasks/correct_referral_value.rake

@ -0,0 +1,4 @@
desc "Alter referral values for lettings logs in the database to 1 if they are 0"
task correct_referral_value: :environment do
LettingsLog.where(referral: 0).update_all(referral: 1)
end
Loading…
Cancel
Save