Skip to content

Commit

Permalink
Add index on msisdn_discovery_id on replies. #195
Browse files Browse the repository at this point in the history
  • Loading branch information
dwilkie committed Jun 30, 2015
1 parent 99b883f commit 5f98f08
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class AddIndexOnRepliesMsisdnDiscoveryId < ActiveRecord::Migration
def change
add_index(:replies, :msisdn_discovery_id)
end
end
3 changes: 2 additions & 1 deletion db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema.define(version: 20150607062339) do
ActiveRecord::Schema.define(version: 20150630071537) do

# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
Expand Down Expand Up @@ -177,6 +177,7 @@
end

add_index "replies", ["chat_id"], name: "index_replies_on_chat_id", using: :btree
add_index "replies", ["msisdn_discovery_id"], name: "index_replies_on_msisdn_discovery_id", using: :btree
add_index "replies", ["state"], name: "index_replies_on_state", using: :btree
add_index "replies", ["token"], name: "index_replies_on_token", unique: true, using: :btree
add_index "replies", ["user_id"], name: "index_replies_on_user_id", using: :btree
Expand Down

0 comments on commit 5f98f08

Please sign in to comment.