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

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

class DropProjectTracingSettingsTable < Gitlab::Database::Migration[2.0]
  def up
    drop_table :project_tracing_settings
  end

  def down
    create_table :project_tracing_settings, id: :bigserial do |t|
      t.timestamps_with_timezone null: false

      t.references :project, type: :integer, null: false, index: { unique: true }

      t.string :external_url, null: false
    end
  end
end