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
40f57b9b
Commit
40f57b9b
authored
Feb 26, 2018
by
Tomasz Maczukin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use change instead of up/down in simple migrations
parent
27266db0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
11 deletions
+2
-11
db/migrate/20180219153455_add_maximum_job_timeout_to_ci_runners.rb
...e/20180219153455_add_maximum_job_timeout_to_ci_runners.rb
+1
-5
db/migrate/20180221022556_add_used_timeout_and_timeout_source_columns_to_ci_builds.rb
...d_used_timeout_and_timeout_source_columns_to_ci_builds.rb
+1
-6
No files found.
db/migrate/20180219153455_add_maximum_job_timeout_to_ci_runners.rb
View file @
40f57b9b
...
...
@@ -3,11 +3,7 @@ class AddMaximumJobTimeoutToCiRunners < ActiveRecord::Migration
DOWNTIME
=
false
def
up
def
change
add_column
:ci_runners
,
:maximum_job_timeout
,
:integer
end
def
down
remove_column
:ci_runners
,
:maximum_job_timeout
end
end
db/migrate/20180221022556_add_used_timeout_and_timeout_source_columns_to_ci_builds.rb
View file @
40f57b9b
...
...
@@ -3,13 +3,8 @@ class AddUsedTimeoutAndTimeoutSourceColumnsToCiBuilds < ActiveRecord::Migration
DOWNTIME
=
false
def
up
def
change
add_column
:ci_builds
,
:used_timeout
,
:integer
add_column
:ci_builds
,
:timeout_source
,
:string
end
def
down
remove_column
:ci_builds
,
:used_timeout
remove_column
:ci_builds
,
:timeout_source
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