rails8-memoapp/db/migrate/20250224135719_add_user_to_memos.rb

6 lines
139 B
Ruby
Raw Normal View History

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