diff --git a/db/migrate/20190922201034_drop_orders_shipping_method_id.rb b/db/migrate/20190922201034_drop_orders_shipping_method_id.rb new file mode 100644 index 0000000000..4f35ec7e99 --- /dev/null +++ b/db/migrate/20190922201034_drop_orders_shipping_method_id.rb @@ -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 diff --git a/db/schema.rb b/db/schema.rb index 8530440f6e..82538bdbac 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 => 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"