|
@@ -18,13 +18,14 @@ class CreateProductCommends < ActiveRecord::Migration
|
|
|
# 是否置顶
|
|
# 是否置顶
|
|
|
t.column :is_top, :boolean, :default=>false
|
|
t.column :is_top, :boolean, :default=>false
|
|
|
# 推荐程度
|
|
# 推荐程度
|
|
|
- t.column :recommend, :boolean, :default=>false
|
|
|
|
|
|
|
+ t.column :recommend, :integer,:null=>false, :default => 0
|
|
|
# 备注
|
|
# 备注
|
|
|
t.column :remark, :string,:limit => 256
|
|
t.column :remark, :string,:limit => 256
|
|
|
t.timestamps
|
|
t.timestamps
|
|
|
end
|
|
end
|
|
|
add_index :product_commends, :wx_user_id
|
|
add_index :product_commends, :wx_user_id
|
|
|
add_index :product_commends, :product_id
|
|
add_index :product_commends, :product_id
|
|
|
|
|
+ add_column :order_details, :commend, :boolean, :default=>false
|
|
|
|
|
|
|
|
end
|
|
end
|
|
|
|
|
|