Merge pull request #4299 from luisramos0/drop_order_ship_method_id

Remove unused field orders.shipping_method_id
This commit is contained in:
Luis Ramos
2019-10-13 19:54:13 +01:00
committed by GitHub
2 changed files with 10 additions and 2 deletions

View File

@@ -0,0 +1,9 @@
class DropOrdersShippingMethodId < ActiveRecord::Migration
def up
remove_column :spree_orders, :shipping_method_id
end
def down
add_column :spree_orders, :shipping_method_id, :integer
end
end

View File

@@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.
ActiveRecord::Schema.define(:version => 20190918105234) do
ActiveRecord::Schema.define(:version => 20190922201034) do
create_table "adjustment_metadata", :force => true do |t|
t.integer "adjustment_id"
@@ -563,7 +563,6 @@ ActiveRecord::Schema.define(:version => 20190918105234) do
t.integer "bill_address_id"
t.integer "ship_address_id"
t.decimal "payment_total", :precision => 10, :scale => 2, :default => 0.0
t.integer "shipping_method_id"
t.string "shipment_state"
t.string "payment_state"
t.string "email"