debian-mirror-gitlab/db/migrate/20230428101217_create_abuse_report_events.rb

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

15 lines
451 B
Ruby
Raw Normal View History

2023-07-09 08:55:56 +05:30
# 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