diff options
Diffstat (limited to 'db/migrate/20230428101217_create_abuse_report_events.rb')
-rw-r--r-- | db/migrate/20230428101217_create_abuse_report_events.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/db/migrate/20230428101217_create_abuse_report_events.rb b/db/migrate/20230428101217_create_abuse_report_events.rb new file mode 100644 index 00000000000..78395955eaf --- /dev/null +++ b/db/migrate/20230428101217_create_abuse_report_events.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +class CreateAbuseReportEvents < Gitlab::Database::Migration[2.1] + def change + create_table :abuse_report_events do |t| + t.bigint :abuse_report_id, null: false, index: true + t.bigint :user_id, index: true + t.datetime_with_timezone :created_at, null: false + t.integer :action, limit: 2, null: false, default: 1 + t.integer :reason, limit: 2 + t.text :comment, limit: 1024 + end + end +end |