Skip to content

Commit

Permalink
Adding multiple indexes to a column
Browse files Browse the repository at this point in the history
  • Loading branch information
kinseyost committed Sep 28, 2016
1 parent ed7433f commit e3f00e4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions db/migrate/20160927043409_create_admin_users_pages_join.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ def up
t.integer "admin_user_id"
t.integer "page_id"
end
# You can add multiple indexes at the same time
add_index :admin_users_pages, ["admin_user_id", "page_id"]
end

Expand Down

0 comments on commit e3f00e4

Please sign in to comment.