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
dede5f01
Commit
dede5f01
authored
Sep 13, 2017
by
Valery Sizov
Committed by
Eric Eastwood
Sep 19, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backport project.merge_requests_ff_only_enabled field from EE
parent
2608e269
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
db/migrate/20150827121444_add_fast_forward_option_to_project.rb
...rate/20150827121444_add_fast_forward_option_to_project.rb
+17
-0
db/schema.rb
db/schema.rb
+1
-0
No files found.
db/migrate/20150827121444_add_fast_forward_option_to_project.rb
0 → 100644
View file @
dede5f01
# rubocop:disable all
class
AddFastForwardOptionToProject
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
# Set this constant to true if this migration requires downtime.
DOWNTIME
=
false
disable_ddl_transaction!
def
add
add_column_with_default
(
:projects
,
:merge_requests_ff_only_enabled
,
:boolean
,
default:
false
)
end
def
down
remove_column
(
:projects
,
:merge_requests_ff_only_enabled
)
end
end
db/schema.rb
View file @
dede5f01
...
@@ -1216,6 +1216,7 @@ ActiveRecord::Schema.define(version: 20170918223303) do
...
@@ -1216,6 +1216,7 @@ ActiveRecord::Schema.define(version: 20170918223303) do
t
.
datetime
"last_repository_updated_at"
t
.
datetime
"last_repository_updated_at"
t
.
integer
"storage_version"
,
limit:
2
t
.
integer
"storage_version"
,
limit:
2
t
.
boolean
"resolve_outdated_diff_discussions"
t
.
boolean
"resolve_outdated_diff_discussions"
t
.
boolean
"merge_requests_ff_only_enabled"
,
default:
false
end
end
add_index
"projects"
,
[
"ci_id"
],
name:
"index_projects_on_ci_id"
,
using: :btree
add_index
"projects"
,
[
"ci_id"
],
name:
"index_projects_on_ci_id"
,
using: :btree
...
...
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