Skip to content

Commit

Permalink
Merge pull request #8 from dockyard/dm-fix-migration
Browse files Browse the repository at this point in the history
Uses gin index for the array column, which makes overlap checks much quicker
  • Loading branch information
bcardarella committed Oct 25, 2013
2 parents 7f0ac98 + f33f013 commit 39f0251
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
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
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 39f0251

Please sign in to comment.