Philip Hallstrom wrote: > Any chance you have a validates_uniqueness_of :station_id in your > model? If so, the above select is checking for that.
Give that man a cigar! Yep, that's exactly what's going on -- thanks! I believe it's safe to remove the uniqueness constraint since my code is checking for existence of a station before creating a new one anyway. If anyone wants to warn me of any gotcha's about doing this, now would be a good time to tell me. <grin> - ff -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

