blob: 2c95a2ab01e8642abd732abf9d933041fbe0e952 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# frozen_string_literal: true
class CreateAbuseTrustScores < Gitlab::Database::Migration[2.1]
def change
create_table :abuse_trust_scores do |t|
t.belongs_to :user, foreign_key: { to_table: :users, on_delete: :cascade }, index: false
t.float :score, null: false
t.timestamps_with_timezone null: false
t.integer :source, limit: 2, null: false
t.text :correlation_id_value, limit: 32
t.index [:user_id, :source, :created_at]
end
end
end
|