Skip to content

Instantly share code, notes, and snippets.

@armstrongnate
Created September 13, 2013 23:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save armstrongnate/6557405 to your computer and use it in GitHub Desktop.
Save armstrongnate/6557405 to your computer and use it in GitHub Desktop.
class AddIndexOnCompanyIdInConcernsAndDepartmentsAndUsers < ActiveRecord::Migration
def change
add_index :departments, :company_id
add_index :concerns, :company_id
add_index :users, :company_id
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment