class AddUserToMemos < ActiveRecord::Migration[8.0] def change add_reference :memos, :user, null: false, foreign_key: true end end