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

20211021141930_drop_geo_upload_deleted_events_table.rb « post_migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b6987e68fb1eb0ac235901833a79bfd04269e2c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

class DropGeoUploadDeletedEventsTable < Gitlab::Database::Migration[1.0]
  def up
    drop_table :geo_upload_deleted_events
  end

  def down
    create_table :geo_upload_deleted_events, id: :bigserial do |t|
      t.integer :upload_id, null: false, index: true
      t.string :file_path, null: false
      t.integer :model_id, null: false
      t.string :model_type, null: false
      t.string :uploader, null: false
    end
  end
end