Soc/db/migrate/20231229121659_add_diary_en...

6 lines
159 B
Ruby

class AddDiaryEntryToExercise < ActiveRecord::Migration[7.1]
def change
add_reference :exercises, :diary_entry, null: false, foreign_key: true
end
end