gitlab-org--gitlab-foss/db/migrate/20220811092244_create_ml_candidates.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
434 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class CreateMlCandidates < Gitlab::Database::Migration[2.0]
enable_lock_retries!
def change
create_table :ml_candidates do |t|
t.timestamps_with_timezone null: false
t.uuid :iid, null: false
t.bigint :experiment_id, null: false
t.references :user, foreign_key: true, index: true, on_delete: :nullify
t.index [:experiment_id, :iid], unique: true
end
end
end