summaryrefslogtreecommitdiff
path: root/db/migrate/20201105021637_add_uploads_size_to_project_statistics.rb
blob: 1d2251f6c37e2eb8cc64ca1695cc3491c216857a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

class AddUploadsSizeToProjectStatistics < ActiveRecord::Migration[6.0]
  DOWNTIME = false

  def up
    add_column :project_statistics, :uploads_size, :bigint, default: 0, null: false
  end

  def down
    remove_column :project_statistics, :uploads_size
  end
end