diff --git a/db/migrate/20160927043409_create_admin_users_pages_join.rb b/db/migrate/20160927043409_create_admin_users_pages_join.rb index d663dac..0a1fb6d 100644 --- a/db/migrate/20160927043409_create_admin_users_pages_join.rb +++ b/db/migrate/20160927043409_create_admin_users_pages_join.rb @@ -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