blob: 38729320d8cb87a7904a794c1ebbb58dfba064f7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
class IncreaseMysqlTextLimitForGpgKeys < ActiveRecord::Migration
# Set this constant to true if this migration requires downtime.
DOWNTIME = false
def up
return unless Gitlab::Database.mysql?
change_column :gpg_keys, :key, :text, limit: 16.megabytes - 1
end
def down
# no-op
end
end
|