summaryrefslogtreecommitdiff
path: root/db/migrate/gpg_keys_limits_to_mysql.rb
blob: 2cd347a0463bff460af4af9b8eeb455854d3d898 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class IncreaseMysqlTextLimitForGpgKeys < ActiveRecord::Migration[4.2]
  # 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