@@ -223,6 +223,7 @@ class Product < ActiveRecord::Base
end
field :out_nums
+ field :key_words
field :created_at
field :updated_at
@@ -295,6 +296,7 @@ class Product < ActiveRecord::Base
@@ -361,6 +363,7 @@ class Product < ActiveRecord::Base
field :min_purchase
field :pv
@@ -59,4 +59,5 @@ zh-CN:
stock_cycle: 备货周期
min_purchase: 最低进货量
product_no: 商品编号
- out_nums: 出库数
+ out_nums: 出库数
+ key_words: 搜索关键字
@@ -0,0 +1,11 @@
+# This migration and CreateVersionAssociations provide the necessary
+# schema for tracking associations.
+class AddKeyWordsColumnToProducts < ActiveRecord::Migration
+ def self.up
+ add_column :products, :key_words, :string, :default=>false
+ end
+
+ def self.down
+ remove_column :products, :key_words
+end