Counter column does not get updated


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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs