Commit aaa7a065 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Add index on order columns for services table

parent 86bb5227
class AddMissingIndex < ActiveRecord::Migration
def change
add_index "services", [:created_at, :id]
end
end
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
# #
# It's strongly recommended that you check this file into your version control system. # It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20150206222854) do ActiveRecord::Schema.define(version: 20150209222013) do
# These are extensions that must be enabled in order to support this database # These are extensions that must be enabled in order to support this database
enable_extension "plpgsql" enable_extension "plpgsql"
...@@ -367,6 +367,7 @@ ActiveRecord::Schema.define(version: 20150206222854) do ...@@ -367,6 +367,7 @@ ActiveRecord::Schema.define(version: 20150206222854) do
t.text "properties" t.text "properties"
end end
add_index "services", ["created_at", "id"], name: "index_services_on_created_at_and_id", using: :btree
add_index "services", ["project_id"], name: "index_services_on_project_id", using: :btree add_index "services", ["project_id"], name: "index_services_on_project_id", using: :btree
create_table "snippets", force: true do |t| create_table "snippets", force: true do |t|
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment