Put a condition to old migration that adds fast_forward column to MRs
This commit is contained in:
parent
5d4f377bfd
commit
3959460ce0
1 changed files with 5 additions and 1 deletions
|
@ -8,7 +8,11 @@ class AddFastForwardOptionToProject < ActiveRecord::Migration
|
||||||
disable_ddl_transaction!
|
disable_ddl_transaction!
|
||||||
|
|
||||||
def up
|
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
|
end
|
||||||
|
|
||||||
def down
|
def down
|
||||||
|
|
Loading…
Reference in a new issue