# frozen_string_literal: true

# This migration comes from audit_log (originally 20190527035005)
class CreateAuditLogs < ActiveRecord::Migration[5.2]
  def change
    create_table "audit_logs", force: :cascade do |t|
      t.string "action", null: false
      t.bigint "user_id"
      t.bigint "record_id"
      t.string "record_type"
      t.text "payload"
      t.text "request"
      t.datetime "created_at"
      t.datetime "updated_at"
      t.index %w[record_type record_id], using: :btree
      t.index %w[user_id action], using: :btree
      t.index ["action"], using: :btree
    end
  end
end
