Skip to content

Commit ad1b7b9

Browse files
committed
[#27] Added migration file for comment counts.
1 parent 8c6e1d9 commit ad1b7b9

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class AddCommentsCountToArticles < ActiveRecord::Migration[7.1]
2+
def change
3+
add_column :articles, :comments_count, :integer
4+
end
5+
end

db/schema.rb

Lines changed: 1 addition & 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)