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
0d9ff3ab
Commit
0d9ff3ab
authored
May 10, 2018
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Skip adding column to remote_mirrors that could already exist
parent
bc36b39a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
ee/db/migrate/20171110152729_add_only_protected_branches_to_remote_mirrors.rb
...10152729_add_only_protected_branches_to_remote_mirrors.rb
+3
-0
No files found.
ee/db/migrate/20171110152729_add_only_protected_branches_to_remote_mirrors.rb
View file @
0d9ff3ab
...
...
@@ -6,6 +6,9 @@ class AddOnlyProtectedBranchesToRemoteMirrors < ActiveRecord::Migration
disable_ddl_transaction!
def
up
# When moving from CE to EE, this column may already exist
return
if
column_exists?
(
:remote_mirrors
,
:only_protected_branches
)
add_column_with_default
(
:remote_mirrors
,
:only_protected_branches
,
:boolean
,
default:
false
,
allow_null:
false
)
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