@@ -40,7 +40,7 @@ class Product < ActiveRecord::Base
end
- TYPE_ENUM = [["直营","direct_sale"],["店铺专区","shop_sale"]]
+ TYPE_ENUM = [["直营","direct_sale"],["店铺专区","shop_sale"],["积分专区","cent_sale"]]
SIZE_ENUM = []
COLOR_ENUM = []
def get_size_enum
@@ -22,10 +22,13 @@ class CreateOrderRefunds < ActiveRecord::Migration
t.timestamps
add_index :order_refunds, :order_id
+ add_column :orders, :cent_price,:integer,:limit => 11
+
def down
drop_table :order_refunds
+ remove_column :orders, :cent_price