-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1cdda0b
commit 8cbe9e9
Showing
1 changed file
with
8 additions
and
9 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,17 +1,16 @@ | ||
diff --git a/db/post_migrate/20240212034010_drop_deprecated_columns.rb b/db/post_migrate/20240212034010_drop_deprecated_columns.rb | ||
index 0899da20..586643ba 100644 | ||
index 0899da20..015fc6d5 100644 | ||
--- a/db/post_migrate/20240212034010_drop_deprecated_columns.rb | ||
+++ b/db/post_migrate/20240212034010_drop_deprecated_columns.rb | ||
@@ -19,6 +19,13 @@ class DropDeprecatedColumns < ActiveRecord::Migration[7.0] | ||
@@ -19,6 +19,11 @@ class DropDeprecatedColumns < ActiveRecord::Migration[7.0] | ||
} | ||
|
||
def up | ||
+ execute <<~SQL | ||
+ DROP TRIGGER IF EXISTS invites_user_id_readonly ON invites; | ||
+ | ||
+ DROP TRIGGER IF EXISTS invites_redeemed_at_readonly ON invites; | ||
+ | ||
+ DROP TRIGGER IF EXISTS user_api_keys_scopes_readonly ON user_api_keys; | ||
+ SQL | ||
+ DROP TRIGGER IF EXISTS invites_user_id_readonly ON invites; | ||
+ DROP TRIGGER IF EXISTS invites_redeemed_at_readonly ON invites; | ||
+ DROP TRIGGER IF EXISTS user_api_keys_scopes_readonly ON user_api_keys; | ||
+ SQL | ||
DROPPED_COLUMNS.each { |table, columns| Migration::ColumnDropper.execute_drop(table, columns) } | ||
end | ||
|