Re:PostgreSQL Basics by Example
by lukes386 on Sunday August 18, 2013 @10:26PM
(#6235270)
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.
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.