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

20160913212128_change_artifacts_size_column.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 063bbca537c04d70573e87f36d9a7cdfcb9146a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
class ChangeArtifactsSizeColumn < ActiveRecord::Migration
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = true

  DOWNTIME_REASON = 'Changing an integer column size requires a full table rewrite.'

  def up
    change_column :ci_builds, :artifacts_size, :integer, limit: 8
  end

  def down
    # do nothing
  end
end