From 524f9af148cc431ae80dc8a834ffabf06b627a04 Mon Sep 17 00:00:00 2001 From: luisramos0 Date: Wed, 19 Sep 2018 11:38:19 +0100 Subject: [PATCH] Drop unused db column line_items.shipping_method_name --- ..._shipping_method_name_from_spree_line_items.rb | 9 +++++++++ db/schema.rb | 15 +++++++-------- 2 files changed, 16 insertions(+), 8 deletions(-) create mode 100644 db/migrate/20180919102548_remove_shipping_method_name_from_spree_line_items.rb diff --git a/db/migrate/20180919102548_remove_shipping_method_name_from_spree_line_items.rb b/db/migrate/20180919102548_remove_shipping_method_name_from_spree_line_items.rb new file mode 100644 index 0000000000..eaae250a18 --- /dev/null +++ b/db/migrate/20180919102548_remove_shipping_method_name_from_spree_line_items.rb @@ -0,0 +1,9 @@ +class RemoveShippingMethodNameFromSpreeLineItems < ActiveRecord::Migration + def up + remove_column :spree_line_items, :shipping_method_name + end + + def down + add_column :spree_line_items, :shipping_method_name, :string + end +end diff --git a/db/schema.rb b/db/schema.rb index 13c0c125b8..91ef541a32 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 => 20180812214434) do +ActiveRecord::Schema.define(:version => 20180919102548) do create_table "account_invoices", :force => true do |t| t.integer "user_id", :null => false @@ -527,15 +527,14 @@ ActiveRecord::Schema.define(:version => 20180812214434) do create_table "spree_line_items", :force => true do |t| t.integer "order_id" t.integer "variant_id" - t.integer "quantity", :null => false - t.decimal "price", :precision => 8, :scale => 2, :null => false - t.datetime "created_at", :null => false - t.datetime "updated_at", :null => false + t.integer "quantity", :null => false + t.decimal "price", :precision => 8, :scale => 2, :null => false + t.datetime "created_at", :null => false + t.datetime "updated_at", :null => false t.integer "max_quantity" t.string "currency" - t.decimal "distribution_fee", :precision => 10, :scale => 2 - t.string "shipping_method_name" - t.decimal "final_weight_volume", :precision => 10, :scale => 2 + t.decimal "distribution_fee", :precision => 10, :scale => 2 + t.decimal "final_weight_volume", :precision => 10, :scale => 2 end add_index "spree_line_items", ["order_id"], :name => "index_line_items_on_order_id"