Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
2b3c636a
Commit
2b3c636a
authored
Feb 12, 2021
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrate set existing Geo OAuth applications to trusted
parent
3a44f9d2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
+21
-0
db/migrate/20210212153934_make_the_geo_oauth_application_trusted_by_default.rb
...3934_make_the_geo_oauth_application_trusted_by_default.rb
+20
-0
db/schema_migrations/20210212153934
db/schema_migrations/20210212153934
+1
-0
No files found.
db/migrate/20210212153934_make_the_geo_oauth_application_trusted_by_default.rb
0 → 100644
View file @
2b3c636a
# 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
db/schema_migrations/20210212153934
0 → 100644
View file @
2b3c636a
233a976aab340f16ed1c896963580fb66f4c9b4dee6a34f9536a62a4f7688792
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment