Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gpg_keys_limits_to_mysql.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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