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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
2bc18355
Commit
2bc18355
authored
Jun 07, 2018
by
Matija Čupić
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use 0 continuous default for deploy strategy
parent
637b90db
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
app/models/project_auto_devops.rb
app/models/project_auto_devops.rb
+2
-2
db/migrate/20180601213245_add_deploy_strategy_to_project_auto_devops.rb
...80601213245_add_deploy_strategy_to_project_auto_devops.rb
+1
-1
No files found.
app/models/project_auto_devops.rb
View file @
2bc18355
...
...
@@ -2,8 +2,8 @@ class ProjectAutoDevops < ActiveRecord::Base
belongs_to
:project
enum
deploy_strategy:
{
manual
:
0
,
continuous
:
1
continuous
:
0
,
manual
:
1
}
scope
:enabled
,
->
{
where
(
enabled:
true
)
}
...
...
db/migrate/20180601213245_add_deploy_strategy_to_project_auto_devops.rb
View file @
2bc18355
...
...
@@ -10,7 +10,7 @@ class AddDeployStrategyToProjectAutoDevops < ActiveRecord::Migration
disable_ddl_transaction!
def
up
add_column_with_default
:project_auto_devops
,
:deploy_strategy
,
:integer
,
default:
1
,
allow_null:
false
add_column_with_default
:project_auto_devops
,
:deploy_strategy
,
:integer
,
default:
0
,
allow_null:
false
end
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