# 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.longtext 'payload'
      t.text 'request'
      t.datetime 'created_at'
      t.datetime 'updated_at'
      t.index %w[record_type record_id]
      t.index %w[user_id action]
      t.index ['action']
    end
  end
end
