From f8ca24c5cdc92b94c1d34aefc58e1db6ddfa5643 Mon Sep 17 00:00:00 2001 From: Rohan Mitchell Date: Fri, 20 Feb 2015 14:56:16 +1100 Subject: [PATCH] Index enterprise_groups address_id --- ...150220035501_add_address_id_index_to_enterprise_groups.rb | 5 +++++ db/schema.rb | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 db/migrate/20150220035501_add_address_id_index_to_enterprise_groups.rb diff --git a/db/migrate/20150220035501_add_address_id_index_to_enterprise_groups.rb b/db/migrate/20150220035501_add_address_id_index_to_enterprise_groups.rb new file mode 100644 index 0000000000..32094cbde7 --- /dev/null +++ b/db/migrate/20150220035501_add_address_id_index_to_enterprise_groups.rb @@ -0,0 +1,5 @@ +class AddAddressIdIndexToEnterpriseGroups < ActiveRecord::Migration + def change + add_index :enterprise_groups, :address_id + end +end diff --git a/db/schema.rb b/db/schema.rb index 959e0f06d6..a8ac91e6d8 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended to check this file into your version control system. -ActiveRecord::Schema.define(:version => 20150219021742) do +ActiveRecord::Schema.define(:version => 20150220035501) do create_table "adjustment_metadata", :force => true do |t| t.integer "adjustment_id" @@ -207,6 +207,7 @@ ActiveRecord::Schema.define(:version => 20150219021742) do t.integer "owner_id" end + add_index "enterprise_groups", ["address_id"], :name => "index_enterprise_groups_on_address_id" add_index "enterprise_groups", ["owner_id"], :name => "index_enterprise_groups_on_owner_id" create_table "enterprise_groups_enterprises", :id => false, :force => true do |t| @@ -584,9 +585,9 @@ ActiveRecord::Schema.define(:version => 20150219021742) do t.string "email" t.text "special_instructions" t.integer "distributor_id" + t.integer "order_cycle_id" t.string "currency" t.string "last_ip_address" - t.integer "order_cycle_id" t.integer "cart_id" end