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
b1a21a99
Commit
b1a21a99
authored
May 31, 2016
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set container_registry_token_expire_delay default to 5
parent
f517aa49
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
db/migrate/20160530150109_add_container_registry_token_expire_delay_to_application_settings.rb
...er_registry_token_expire_delay_to_application_settings.rb
+2
-2
db/schema.rb
db/schema.rb
+1
-1
No files found.
db/migrate/20160530150109_add_container_registry_token_expire_delay_to_application_settings.rb
View file @
b1a21a99
...
...
@@ -4,9 +4,9 @@ class AddContainerRegistryTokenExpireDelayToApplicationSettings < ActiveRecord::
include
Gitlab
::
Database
::
MigrationHelpers
def
change
add_column
:application_settings
,
:container_registry_token_expire_delay
,
:integer
add_column
:application_settings
,
:container_registry_token_expire_delay
,
:integer
,
default:
5
# Set
default expire delay to 5 minute
s
# Set
expire delay to 5 minutes for existing setting
s
execute
(
"update application_settings set container_registry_token_expire_delay = 5"
)
end
end
db/schema.rb
View file @
b1a21a99
...
...
@@ -83,7 +83,7 @@ ActiveRecord::Schema.define(version: 20160530150109) do
t
.
text
"disabled_oauth_sign_in_sources"
t
.
string
"health_check_access_token"
t
.
boolean
"send_user_confirmation_email"
,
default:
false
t
.
integer
"container_registry_token_expire_delay"
t
.
integer
"container_registry_token_expire_delay"
,
default:
5
end
create_table
"audit_events"
,
force: :cascade
do
|
t
|
...
...
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