Problem with counter_cache implementation

I'm getting 'rake aborted! ... posts_count is marked readonly' errors. I have two models: user and post. users has_many posts. posts belongs_to :user, :counter_cache => true I have a migration