has_may ,belongs_to ,etc in those Model association ,will it automatically add index to forien_keys ?
Pokkai Dokkai wrote:
has_may ,belongs_to ,etc in those Model association ,will it automatically add index to forien_keys ?
no, you need to use the add_index :table, :column_name in your migrations