Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20210212153934_make_the_geo_oauth_application_trusted_by_default.rb')
-rw-r--r--db/migrate/20210212153934_make_the_geo_oauth_application_trusted_by_default.rb20
1 files changed, 0 insertions, 20 deletions
diff --git a/db/migrate/20210212153934_make_the_geo_oauth_application_trusted_by_default.rb b/db/migrate/20210212153934_make_the_geo_oauth_application_trusted_by_default.rb
deleted file mode 100644
index ab0343887e4..00000000000
--- a/db/migrate/20210212153934_make_the_geo_oauth_application_trusted_by_default.rb
+++ /dev/null
@@ -1,20 +0,0 @@
-# frozen_string_literal: true
-
-class MakeTheGeoOauthApplicationTrustedByDefault < ActiveRecord::Migration[6.0]
- DOWNTIME = false
-
- def up
- execute(<<-SQL.squish)
- UPDATE oauth_applications
- SET confidential = true, trusted = true
- WHERE id IN (SELECT oauth_application_id FROM geo_nodes);
- SQL
- end
-
- def down
- # We won't be able to tell which trusted applications weren't
- # confidential before the migration and setting all trusted
- # applications are not confidential would introduce security
- # issues.
- end
-end