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
56813c7f
Commit
56813c7f
authored
Mar 18, 2019
by
James Lopez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update migration to use encryption
parent
5fca26fa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
db/schema.rb
db/schema.rb
+2
-2
ee/db/migrate/20190301095211_create_scim_oauth_access_tokens.rb
...migrate/20190301095211_create_scim_oauth_access_tokens.rb
+4
-2
No files found.
db/schema.rb
View file @
56813c7f
...
...
@@ -2777,8 +2777,8 @@ ActiveRecord::Schema.define(version: 20190305162221) do
t
.
datetime_with_timezone
"created_at"
,
null:
false
t
.
datetime_with_timezone
"updated_at"
,
null:
false
t
.
integer
"group_id"
,
null:
false
t
.
string
"token"
,
null:
false
t
.
index
[
"group_id"
,
"token
"
],
name:
"index_scim_oauth_access_tokens_on_group_id_and_token
"
,
unique:
true
,
using: :btree
t
.
string
"token
_encrypted
"
,
null:
false
t
.
index
[
"group_id"
,
"token
_encrypted"
],
name:
"index_scim_oauth_access_tokens_on_group_id_and_token_encrypted
"
,
unique:
true
,
using: :btree
end
create_table
"sent_notifications"
,
force: :cascade
do
|
t
|
...
...
ee/db/migrate/20190301095211_create_scim_oauth_access_tokens.rb
View file @
56813c7f
# frozen_string_literal: true
class
CreateScimOauthAccessTokens
<
ActiveRecord
::
Migration
[
5.0
]
DOWNTIME
=
false
...
...
@@ -5,9 +7,9 @@ class CreateScimOauthAccessTokens < ActiveRecord::Migration[5.0]
create_table
:scim_oauth_access_tokens
do
|
t
|
t
.
timestamps_with_timezone
null:
false
t
.
references
:group
,
null:
false
,
index:
false
t
.
string
"token"
,
null:
false
t
.
string
:token_encrypted
,
null:
false
t
.
index
[
:group_id
,
:token
],
unique:
true
t
.
index
[
:group_id
,
:token
_encrypted
],
unique:
true
t
.
foreign_key
:namespaces
,
column: :group_id
,
on_delete: :cascade
end
end
...
...
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