Skip to content

Commit 2f16573

Browse files
tuzzfloehopper
authored andcommitted
Add a projects.lesson_id column
1 parent 39f45f7 commit 2f16573

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class AddLessonIdToProjects < ActiveRecord::Migration[7.0]
2+
def change
3+
add_reference :projects, :lesson, type: :uuid, foreign_key: true, index: true
4+
end
5+
end

db/schema.rb

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)