Permalink
Browse files

Fix mistake in add_forem_view_fields migration as pointed out here: r…

  • Loading branch information...
1 parent 01315f2 commit 3c3e61c7af7282c3c5f4b1d100a81d55fe2f108b @radar radar committed Apr 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 db/migrate/20120302152918_add_forem_view_fields.rb
@@ -6,7 +6,7 @@ def up
add_column :forem_forums, :views_count, :integer, :default=>0
Forem::Topic.find_each do |topic|
- topic.update_column(:views_count, topics.views.sum(:count))
+ topic.update_column(:views_count, topic.views.sum(:count))
end
Forem::Forum.find_each do |forum|

0 comments on commit 3c3e61c

Please sign in to comment.