mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-04-03 06:59:14 +00:00
Add index on spree_adjustments.order_id
This commit is contained in:
5
db/migrate/20210312095840_add_index_to_adjustments.rb
Normal file
5
db/migrate/20210312095840_add_index_to_adjustments.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
class AddIndexToAdjustments < ActiveRecord::Migration[5.0]
|
||||
def change
|
||||
add_index :spree_adjustments, :order_id
|
||||
end
|
||||
end
|
||||
@@ -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|
|
||||
|
||||
Reference in New Issue
Block a user