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
3959460c
Commit
3959460c
authored
Nov 04, 2017
by
Valery Sizov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Put a condition to old migration that adds fast_forward column to MRs
parent
5d4f377b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
db/migrate/20150827121444_add_fast_forward_option_to_project.rb
...rate/20150827121444_add_fast_forward_option_to_project.rb
+5
-1
No files found.
db/migrate/20150827121444_add_fast_forward_option_to_project.rb
View file @
3959460c
...
...
@@ -8,7 +8,11 @@ class AddFastForwardOptionToProject < ActiveRecord::Migration
disable_ddl_transaction!
def
up
add_column_with_default
(
:projects
,
:merge_requests_ff_only_enabled
,
:boolean
,
default:
false
)
# We put condition here because of a mistake we made a couple of years ago
# see https://gitlab.com/gitlab-org/gitlab-ce/issues/39382#note_45716103
unless
column_exists?
(
:projects
,
:merge_requests_ff_only_enabled
)
add_column_with_default
(
:projects
,
:merge_requests_ff_only_enabled
,
:boolean
,
default:
false
)
end
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