Skip to content
This repository has been archived by the owner on Jan 21, 2022. It is now read-only.

Commit

Permalink
Add indices for read_only_users table [#129885695]
Browse files Browse the repository at this point in the history
Signed-off-by: Joseph Palermo <jpalermo@pivotal.io>
  • Loading branch information
APShirley authored and jpalermo committed Jan 17, 2018
1 parent ed03cdb commit 32a93f9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions db/migrate/20180117002358_create_read_only_users.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@ def change

t.timestamps null: false
end

add_index :read_only_users, :username
add_index :read_only_users, :grantee
end
end
3 changes: 3 additions & 0 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
t.datetime "updated_at", null: false
end

add_index "read_only_users", ["grantee"], name: "index_read_only_users_on_grantee", using: :btree
add_index "read_only_users", ["username"], name: "index_read_only_users_on_username", using: :btree

create_table "service_instances", force: :cascade do |t|
t.string "guid", limit: 255
t.string "plan_guid", limit: 255
Expand Down

0 comments on commit 32a93f9

Please sign in to comment.