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
c39d5bd1
Commit
c39d5bd1
authored
Sep 08, 2021
by
Andreas Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use migration-level lock-retries
parent
b7a6b876
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
db/migrate/20210902171406_add_latest_column_into_the_security_scans_table.rb
...171406_add_latest_column_into_the_security_scans_table.rb
+4
-6
No files found.
db/migrate/20210902171406_add_latest_column_into_the_security_scans_table.rb
View file @
c39d5bd1
# frozen_string_literal: true
# frozen_string_literal: true
class
AddLatestColumnIntoTheSecurityScansTable
<
Gitlab
::
Database
::
Migration
[
1.0
]
class
AddLatestColumnIntoTheSecurityScansTable
<
Gitlab
::
Database
::
Migration
[
1.0
]
enable_lock_retries!
def
up
def
up
with_lock_retries
do
add_column
:security_scans
,
:latest
,
:boolean
,
default:
true
,
null:
false
add_column
:security_scans
,
:latest
,
:boolean
,
default:
true
,
null:
false
end
end
end
def
down
def
down
with_lock_retries
do
remove_column
:security_scans
,
:latest
remove_column
:security_scans
,
:latest
end
end
end
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