Skip to content

Commit

Permalink
Merge pull request #1873 from trade-tariff/OTT-299
Browse files Browse the repository at this point in the history
End date ZWL currency may 24
  • Loading branch information
shjohnson authored May 30, 2024
2 parents b016d86 + 759379d commit c44d361
Showing 1 changed file with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# frozen_string_literal: true

Sequel.migration do
up do
if TradeTariffBackend.uk?
zimbabwe_country_currency = ExchangeRateCountryCurrency.where(country_description: 'Zimbabwe',
currency_code: 'ZWL',
country_code:'ZW').first

zimbabwe_country_currency.update(validity_end_date: Date.new(2024, 06, 01))

ExchangeRateCountryCurrency.create(country_description: 'Zimbabwe',
currency_code: 'ZIG',
country_code:'ZW',
currency_description: 'Dollar',
validity_start_date: Date.new(2024,06,01),
validity_end_date: nil,)

end
end

down do
# We don't want to rollback to incorrect Zimbabwe rates.
end
end

0 comments on commit c44d361

Please sign in to comment.