class CreateCensorBearModLogs < ActiveRecord::Migration[6.1] def change create_table :censor_bear_mod_logs do |t| t.bigint :record_id t.string :record_type t.text :content t.string :reason t.string :mod_words, array: true, default: [] t.bigint :user_id t.timestamps t.index %w[record_type record_id], using: :btree end end end