class AddCreatedByToCaseLogs < ActiveRecord::Migration[7.0] def change change_table :case_logs, bulk: true do |t| t.belongs_to :created_by, class_name: "User" end end end