3 ms·
I'm really surprised that you would consider ActiveRecord more mature and superior to anything else. I've always considered it the weakest part of Rails. It d
by eeperson 14y ago
I'm really surprised that you would consider ActiveRecord more mature and superior to anything else. I've always considered it the weakest part of Rails. It doesn't include support for foreign keys (you can ad it with a 3rd party plugin but I was really surprised that it wasn't included) and it gives you no control over which fields are lazy loaded. Am I missing something? Why do you consider it superior to everything else?
- rockyj 14y agoAbout foreign keys - http://guides.rubyonrails.org/migrations.html#active-record-and-referential-integrity http://guides.rubyonrails.org/migrations.html#active-record-... About Lazy Loading at field level it is not really needed in most scenarios. You can do it with your own code if you wanted it that way. Edge case scenarios may be handled differently in most ORMs however with Active Record I never felt the need to write SQL ever. Also for simple checks I use the Rails console to see data whereas with other ORMs I had to open a SQL console.