Converted has_many syntax deprecated in Rails 4