counter column does not get updated

0 views
Skip to first unread message

Mohammed Alenazi

unread,
Sep 1, 2010, 8:37:24 PM9/1/10
to Ruby on Rails: Talk
Hi

I have
In user.rb
has_many :properties ,:dependent => :destroy

In property.rb
belongs_to :user ,:counter_cache => true


inside property migration
add_column :users, :properties_count, :integer, :default => 0


for some reason the counter column does not get updated.

I am using resful auth. I am not sure if it's causing the problem.
Reply all
Reply to author
Forward
0 new messages