Ruby on Rails Database Indexes
Contact me at LinkedIn  RailsZilla at Facebook  RailsZilla at twitter   google +1  Contact me at Xing  connect me at github

Ruby on Rails Database Indexes

Posted in Rails

Handy hint for better database performance in Ruby on Rails: Always add DB index in your Migration! By default, rails does not add indexes automatically for foreign key, you should add indexes by yourself. If you want to speed up your performance, I suggest to add an index for – foreign key – columns that […]

Tags: , , , , , ,

Rails seed data example

Posted in Rails

The most ugly code smells in Rails applications is the use of migrations as a way to carry seed data. This is data that needs to be added to the database on deployment. I really hate it, because it’s hard to maintain and doesn’t play well with loading up the database from the schema file. […]

Tags: , , , , , , ,

Copyright © 2011-2017  - RailsZilla – Ruby on Rails tutorials, tips and tricks All rights reserved. | Imprint | Privacy