Update db/migrate/20210406161242_migrate_enterprise_fee_tax_amounts.rb

Co-authored-by: Maikel <maikel@email.org.au>
This commit is contained in:
Matt-Yorkley
2021-06-04 12:06:27 +02:00
parent 76756923ba
commit d9f459d94a

View File

@@ -83,8 +83,6 @@ class MigrateEnterpriseFeeTaxAmounts < ActiveRecord::Migration[5.0]
end
def tax_rate_for(tax_category)
return if tax_category.nil?
tax_category.tax_rates.first
tax_category&.tax_rates&.first
end
end