Is it possible to do this with > validates_uniqueness? validates_uniqueness on a boolean would be great if you only ever want 2 records in your table...
Perhaps doing a quick count of records with the value set before saving your current create/update would achieve what you want. -- 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 -~----------~----~----~----~------~----~------~--~---

