Skip to content

Commit

Permalink
Uses gin index for the array column, which makes overlap checks much …
Browse files Browse the repository at this point in the history
…quicker
  • Loading branch information
danmcclain committed Oct 25, 2013
1 parent 7f0ac98 commit f33f013
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion db/migrate/20120227014023_create_easy_auth_identities.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ def change
t.timestamps
end

add_index :identities, :uid
add_index :identities, :uid, using: :gin
end
end
2 changes: 1 addition & 1 deletion spec/dummy/db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
t.datetime "updated_at"
end

add_index "identities", ["uid"], name: "index_identities_on_uid", using: :btree
add_index "identities", ["uid"], name: "index_identities_on_uid", using: :gin

create_table "users", force: true do |t|
t.string "email"
Expand Down

0 comments on commit f33f013

Please sign in to comment.