debian-mirror-gitlab/db/migrate/20201105021637_add_uploads_size_to_project_statistics.rb
2021-01-29 00:20:46 +05:30

14 lines
296 B
Ruby

# 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