5 ms·
I gave up on Rails, because I didn't want to unlearn SQL / relational DB principles. Is there a good guide somewhere that will teach me how to stay in control o
by addandsubtract 15y ago
I gave up on Rails, because I didn't want to unlearn SQL / relational DB principles. Is there a good guide somewhere that will teach me how to stay in control of my DB schema with Rails and not do dumb shit the framework wants me to do?
- trebor 15y agoI haven't found one. At least with Rails 3 / ARel you can do queries like: Posts.where("posted_on BETWEEN ? AND ?", Date.current - 2.months, Date.current) But it still isn't the same. You can create a Rails app without an ORM, but then you must do all your queries and migrations in your own code. This is one of the reasons people stick with the suboptimal SQL: it's faster to generate and lets you iterate more quickly.