3 ms·
Yes, that's true. The approach has it's drawbacks though (validates_uniqueness_of being a prime example). As much as I like Rails, I sometimes wish it were des
by lukes386 13y ago
Yes, that's true. The approach has it's drawbacks though (validates_uniqueness_of being a prime example).
As much as I like Rails, I sometimes wish it were designed with the database playing more of a role than just dumb storage. Defining things like validations in Ruby is certainly nice and easy, but the database is much better suited to actually enforcing such constraints.