blob: fe9fc293b03b0a6ee3c7b7d3fadddc2e83aa1355 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# 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
|