Read about our upcoming Code of Conduct on this issue

This instance will be upgraded to Heptapod 0.28.1 on 2022-01-26 at 16:00 UTC+1 (a few minutes of down time)

20190422082247_create_project_metrics_settings.rb 418 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

class CreateProjectMetricsSettings < ActiveRecord::Migration[5.0]
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = false

  def change
    create_table :project_metrics_settings, id: :int, primary_key: :project_id, default: nil do |t|
      t.string :external_dashboard_url, null: false
      t.foreign_key :projects, column: :project_id, on_delete: :cascade
    end
  end
end