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
260225eb
Commit
260225eb
authored
Aug 02, 2019
by
George Koltsov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace add_column_with_default to add_column
parent
5e3a208f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
db/migrate/20190726101133_add_allow_local_requests_from_system_hooks_to_application_settings.rb
...cal_requests_from_system_hooks_to_application_settings.rb
+4
-6
No files found.
db/migrate/20190726101133_add_allow_local_requests_from_system_hooks_to_application_settings.rb
View file @
260225eb
...
@@ -5,13 +5,11 @@ class AddAllowLocalRequestsFromSystemHooksToApplicationSettings < ActiveRecord::
...
@@ -5,13 +5,11 @@ class AddAllowLocalRequestsFromSystemHooksToApplicationSettings < ActiveRecord::
DOWNTIME
=
false
DOWNTIME
=
false
disable_ddl_transaction!
def
up
def
up
add_column
_with_default
(
:application_settings
,
:allow_local_requests_from_system_hooks
,
add_column
(
:application_settings
,
:allow_local_requests_from_system_hooks
,
:boolean
,
:boolean
,
default:
true
,
default:
true
,
allow_
null:
false
)
null:
false
)
end
end
def
down
def
down
...
...
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