Fix error in Rails 2.x/3.0 association definition