debian-mirror-gitlab/db/migrate/gpg_keys_limits_to_mysql.rb

15 lines
315 B
Ruby
Raw Normal View History

2019-02-15 15:39:39 +05:30
class IncreaseMysqlTextLimitForGpgKeys < ActiveRecord::Migration[4.2]
2018-11-08 19:23:39 +05:30
# 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