Add index on spree_adjustments.order_id

This commit is contained in:
Matt-Yorkley
2021-03-12 10:12:56 +00:00
parent 274440acdd
commit 00c7ab1ebb
2 changed files with 6 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
class AddIndexToAdjustments < ActiveRecord::Migration[5.0]
def change
add_index :spree_adjustments, :order_id
end
end

View File

@@ -373,6 +373,7 @@ ActiveRecord::Schema.define(version: 20210312095840) do
t.integer "order_id"
t.boolean "included", default: false
t.index ["adjustable_id"], name: "index_adjustments_on_order_id", using: :btree
t.index ["order_id"], name: "index_spree_adjustments_on_order_id", using: :btree
end
create_table "spree_assets", force: :cascade do |t|