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