Skip to content

Commit cd01b3d

Browse files
committed
MIGRATION Add author to snippets
1 parent 4902a02 commit cd01b3d

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 AddAuthorToSnippets < ActiveRecord::Migration[7.1]
2+
def change
3+
add_reference :snippets, :author, type: :string, polymorphic: true, null: false, 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)