debian-mirror-gitlab/db/migrate/20200710105332_change_issues_create_limit_default.rb
2020-08-09 17:44:08 +05:30

19 lines
448 B
Ruby

# 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