On Wed, 2009-12-02 at 10:09 +0100, Thomas Bellman wrote: > Ohad Levy wrote: > > > Are we not using the rails validation methods on purpose ? > > e.g. > > validate_uniqueness_of :name > > will ensure that no two (hosts, parameters etc) will be created. > > > > This ofcourse generates another select statement each time (to verify if > > it already exists)... > > That sounds like something that should be enforced by the database > schema, not by the application.
Correct, this should be enforced by the schema... Except it will introduce much more issues (I know because I tried it), see my other e-mail in this thread for the background discussion. -- Brice Figureau Follow the latest Puppet Community evolutions on www.planetpuppet.org! -- You received this message because you are subscribed to the Google Groups "Puppet Developers" 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/puppet-dev?hl=en.
