adds comments counte cache column to debate

This commit is contained in:
Juanjo Bazán
2015-08-26 17:14:48 +02:00
parent 54bed9e515
commit ca3f8daab9
2 changed files with 13 additions and 7 deletions

View File

@@ -0,0 +1,5 @@
class AddCommentsCountToDebate < ActiveRecord::Migration
def change
add_column :debates, :comments_count, :integer, default: 0
end
end