Add indexes on foreign keys when you create a migration (with foreign key)

Posted Over 11 years ago by Dragos Miron.
tomafro.net

Whenever you make a migration to add a foreign key, you should also add an index for it