debian-mirror-gitlab/db/migrate/20220811092246_create_ml_candidate_metrics.rb

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

17 lines
453 B
Ruby
Raw Normal View History

2022-08-27 11:52:29 +05:30
# frozen_string_literal: true
class CreateMlCandidateMetrics < Gitlab::Database::Migration[2.0]
def change
create_table :ml_candidate_metrics do |t|
t.timestamps_with_timezone null: false
t.references :candidate,
foreign_key: { to_table: :ml_candidates },
index: true
t.float :value
t.integer :step
t.binary :is_nan
t.text :name, limit: 250, null: false
end
end
end