diff options
Diffstat (limited to 'db/migrate/20210510191552_add_limit_to_findings_evidences_request_body.rb')
-rw-r--r-- | db/migrate/20210510191552_add_limit_to_findings_evidences_request_body.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/db/migrate/20210510191552_add_limit_to_findings_evidences_request_body.rb b/db/migrate/20210510191552_add_limit_to_findings_evidences_request_body.rb new file mode 100644 index 00000000000..84c8acdb10d --- /dev/null +++ b/db/migrate/20210510191552_add_limit_to_findings_evidences_request_body.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +class AddLimitToFindingsEvidencesRequestBody < ActiveRecord::Migration[6.0] + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + disable_ddl_transaction! + + def up + add_text_limit :vulnerability_finding_evidence_requests, :body, 2048 + end + + def down + remove_text_limit :vulnerability_finding_evidence_requests, :body + end +end |