@@ -278,6 +278,7 @@ class Product < ActiveRecord::Base
field :is_only_new
field :specification
field :no_delivery_area
+ field :only_delivery_area
field :video_state
field :video_url
field :size_name
@@ -339,6 +340,7 @@ class Product < ActiveRecord::Base
@@ -44,6 +44,7 @@ zh-CN:
specification: 规格
no_delivery_area: 不发货地区
+ only_delivery_area: 仅发货地区
video_state: 显示视频
video_url: 视频地址
size_id: 规格一
@@ -0,0 +1,11 @@
+# This migration and CreateVersionAssociations provide the necessary
+# schema for tracking associations.
+class AddDeliveryAreaColumnToProducts < ActiveRecord::Migration
+ def self.up
+ add_column :products, :only_delivery_area, :string, :default=>""
+ end
+
+ def self.down
+ remove_column :products, :only_delivery_area
+end