debian-mirror-gitlab/db/migrate/20200710105332_change_issues_create_limit_default.rb

20 lines
448 B
Ruby
Raw Normal View History

2020-07-28 23:09:34 +05:30
# frozen_string_literal: true
class ChangeIssuesCreateLimitDefault < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
def up
with_lock_retries do
change_column_default :application_settings, :issues_create_limit, from: 300, to: 0
end
end
def down
with_lock_retries do
change_column_default :application_settings, :issues_create_limit, from: 0, to: 300
end
end
end