Skip to content

Commit

Permalink
chore: actually apply the changes to the compliance views for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
pdl committed Sep 30, 2024
1 parent 629b74e commit 085e9bc
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
class ReplaceTradeComplianceViewsForRailsTesting < ActiveRecord::Migration[7.1]
def up
safety_assured do
execute "CREATE OR REPLACE VIEW trade_shipments_appendix_i_view AS #{view_sql('20240905153246', 'trade_shipments_appendix_i_view')}"
execute "CREATE OR REPLACE VIEW trade_shipments_cites_suspensions_view AS #{view_sql('20240905155630', 'trade_shipments_cites_suspensions_view')}"
execute "CREATE OR REPLACE VIEW trade_shipments_mandatory_quotas_view AS #{view_sql('20240905153745', 'trade_shipments_mandatory_quotas_view')}"
end
end
def down
safety_assured do
execute "CREATE OR REPLACE VIEW trade_shipments_appendix_i_view AS #{view_sql('2023070615508', 'trade_shipments_appendix_i_view')}"
execute "CREATE OR REPLACE VIEW trade_shipments_cites_suspensions_view AS #{view_sql('2023070616851', 'trade_shipments_cites_suspensions_view')}"
execute "CREATE OR REPLACE VIEW trade_shipments_mandatory_quotas_view AS #{view_sql('2023070615541', 'trade_shipments_mandatory_quotas_view')}"
end
end
end

0 comments on commit 085e9bc

Please sign in to comment.