@@ -4,7 +4,7 @@ class CreateProductWarns < ActiveRecord::Migration
#商品生产预警
create_table :product_warns do |t|
# 统计时间
- t.column :happen_time,:datetime
+ t.column :happen_time,:date
# 商品ID
t.column :product_id, :integer, :limit => 4, :null => false, :default => 0
# 商品名称