-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: actually apply the changes to the compliance views for testing
- Loading branch information
Showing
1 changed file
with
16 additions
and
0 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
db/migrate/20240925161004_replace_trade_compliance_views_for_rails_testing.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |