Drop unused db column line_items.shipping_method_name

This commit is contained in:
luisramos0
2018-09-19 11:38:19 +01:00
parent 9f7d24934d
commit 524f9af148
2 changed files with 16 additions and 8 deletions

View File

@@ -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

View File

@@ -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"