Skip to content

Commit

Permalink
Add missing db index in debate.hot_score
Browse files Browse the repository at this point in the history
  • Loading branch information
kikito committed Sep 7, 2015
1 parent 5b671ce commit 5a1646d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions db/migrate/20150907064631_add_hot_score_index_to_debates.rb
@@ -0,0 +1,5 @@
class AddHotScoreIndexToDebates < ActiveRecord::Migration
def change
add_index(:debates, :hot_score)
end
end
3 changes: 2 additions & 1 deletion db/schema.rb
Expand Up @@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema.define(version: 20150903200440) do
ActiveRecord::Schema.define(version: 20150907064631) do

# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
Expand Down Expand Up @@ -109,6 +109,7 @@
add_index "debates", ["cached_votes_total"], name: "index_debates_on_cached_votes_total", using: :btree
add_index "debates", ["cached_votes_up"], name: "index_debates_on_cached_votes_up", using: :btree
add_index "debates", ["hidden_at"], name: "index_debates_on_hidden_at", using: :btree
add_index "debates", ["hot_score"], name: "index_debates_on_hot_score", using: :btree

create_table "delayed_jobs", force: :cascade do |t|
t.integer "priority", default: 0, null: false
Expand Down

0 comments on commit 5a1646d

Please sign in to comment.