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

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

class AddColumnModelIdToMlExperiments < Gitlab::Database::Migration[2.1]
  def change
    # rubocop:disable Migration/AddReference
    add_reference :ml_experiments,
      :model,
      index: true,
      null: true,
      unique: true,
      foreign_key: { on_delete: :cascade, to_table: :ml_models }
    # rubocop:enable Migration/AddReference
  end
end