diff options
author | Valery Sizov <valery@gitlab.com> | 2017-09-13 15:43:02 +0300 |
---|---|---|
committer | Eric Eastwood <contact@ericeastwood.com> | 2017-09-19 23:45:31 -0500 |
commit | dede5f01889e31ae7dd1e3b45f6b3852e7c0e18a (patch) | |
tree | 08fb442d82c121bf3059cbfb9fa48c6a4cd2a346 /db | |
parent | 2608e269a528290db1bc6d6c0d97b71b5bc3ff26 (diff) | |
download | gitlab-ce-dede5f01889e31ae7dd1e3b45f6b3852e7c0e18a.tar.gz |
Backport project.merge_requests_ff_only_enabled field from EE
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20150827121444_add_fast_forward_option_to_project.rb | 17 | ||||
-rw-r--r-- | db/schema.rb | 1 |
2 files changed, 18 insertions, 0 deletions
diff --git a/db/migrate/20150827121444_add_fast_forward_option_to_project.rb b/db/migrate/20150827121444_add_fast_forward_option_to_project.rb new file mode 100644 index 00000000000..014f5b2f372 --- /dev/null +++ b/db/migrate/20150827121444_add_fast_forward_option_to_project.rb @@ -0,0 +1,17 @@ +# 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 diff --git a/db/schema.rb b/db/schema.rb index 3ec430c0078..bc88eaebea3 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -1216,6 +1216,7 @@ ActiveRecord::Schema.define(version: 20170918223303) do t.datetime "last_repository_updated_at" t.integer "storage_version", limit: 2 t.boolean "resolve_outdated_diff_discussions" + t.boolean "merge_requests_ff_only_enabled", default: false end add_index "projects", ["ci_id"], name: "index_projects_on_ci_id", using: :btree |