Soc/db/migrate/20231229121659_add_diary_en...

6 lines
159 B
Ruby
Raw Normal View History

2023-12-29 12:17:57 +00:00
class AddDiaryEntryToExercise < ActiveRecord::Migration[7.1]
def change
add_reference :exercises, :diary_entry, null: false, foreign_key: true
end
end