summaryrefslogtreecommitdiff
path: root/db/migrate/gpg_keys_limits_to_mysql.rb
blob: 780340d0564c90c1653548e43715e6267d73525c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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