mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +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
|
||||
def change
|
||||
add_index :spree_adjustments, :order_id
|
||||
end
|
||||
end
|
||||
@@ -11,7 +11,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20210216203057) do
|
||||
ActiveRecord::Schema.define(version: 20210312095840) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
@@ -399,6 +399,7 @@ ActiveRecord::Schema.define(version: 20210216203057) do
|
||||
end
|
||||
|
||||
add_index "spree_adjustments", ["adjustable_id"], name: "index_adjustments_on_order_id", using: :btree
|
||||
add_index "spree_adjustments", ["order_id"], name: "index_spree_adjustments_on_order_id", using: :btree
|
||||
|
||||
create_table "spree_assets", force: :cascade do |t|
|
||||
t.integer "viewable_id"
|
||||
|
||||
Reference in New Issue
Block a user