diff options
Diffstat (limited to 'db/migrate/20190531153110_create_namespace_root_storage_statistics.rb')
-rw-r--r-- | db/migrate/20190531153110_create_namespace_root_storage_statistics.rb | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/db/migrate/20190531153110_create_namespace_root_storage_statistics.rb b/db/migrate/20190531153110_create_namespace_root_storage_statistics.rb deleted file mode 100644 index 702560d05cc..00000000000 --- a/db/migrate/20190531153110_create_namespace_root_storage_statistics.rb +++ /dev/null @@ -1,22 +0,0 @@ -# frozen_string_literal: true - -class CreateNamespaceRootStorageStatistics < ActiveRecord::Migration[5.1] - DOWNTIME = false - - def change - create_table :namespace_root_storage_statistics, id: false, primary_key: :namespace_id do |t| - t.integer :namespace_id, null: false, primary_key: true - t.datetime_with_timezone :updated_at, null: false - - t.bigint :repository_size, null: false, default: 0 - t.bigint :lfs_objects_size, null: false, default: 0 - t.bigint :wiki_size, null: false, default: 0 - t.bigint :build_artifacts_size, null: false, default: 0 - t.bigint :storage_size, null: false, default: 0 - t.bigint :packages_size, null: false, default: 0 - - t.index :namespace_id, unique: true - t.foreign_key :namespaces, column: :namespace_id, on_delete: :cascade - end - end -end |