2019-04-26 13:23:26 -04:00
|
|
|
# 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|
|
2020-04-21 11:21:10 -04:00
|
|
|
t.string :external_dashboard_url, null: false # rubocop:disable Migration/PreventStrings
|
2019-04-26 13:23:26 -04:00
|
|
|
t.foreign_key :projects, column: :project_id, on_delete: :cascade
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|