Permalink
Browse files

Remove credit total from Orders. It is not being used anymore.

  • Loading branch information...
1 parent ed4ab19 commit 210b02fc99f11bb5f7020416e1d016a2dd1771f4 @LBRapid LBRapid committed with radar Jun 4, 2012
@@ -12,7 +12,7 @@ def required_fields_for(model)
end
def product_attributes
- [:id, :name, :description, :price, :available_on, :permalink,
+ [:id, :name, :description, :price, :available_on, :permalink,
:count_on_hand, :meta_description, :meta_keywords, :taxon_ids]
end
@@ -33,7 +33,7 @@ def option_value_attributes
end
def order_attributes
- [:id, :number, :item_total, :total, :state, :adjustment_total, :credit_total, :user_id, :created_at, :updated_at, :completed_at, :payment_total, :shipment_state, :payment_state, :email, :special_instructions]
+ [:id, :number, :item_total, :total, :state, :adjustment_total, :user_id, :created_at, :updated_at, :completed_at, :payment_total, :shipment_state, :payment_state, :email, :special_instructions]
end
def line_item_attributes
@@ -6,7 +6,7 @@ module Spree
let!(:order) { create(:order) }
let(:attributes) { [:number, :item_total, :total,
- :state, :adjustment_total, :credit_total,
+ :state, :adjustment_total,
:user_id, :created_at, :updated_at,
:completed_at, :payment_total, :shipment_state,
:payment_state, :email, :special_instructions] }
@@ -0,0 +1,5 @@
+class RemoveCreditTotalFromOrders < ActiveRecord::Migration
+ def change
+ remove_column :spree_orders, :credit_total
+ end
+end

0 comments on commit 210b02f

Please sign in to comment.