|
|
@@ -12,7 +12,7 @@ class CreateRechargePromotions < ActiveRecord::Migration
|
|
|
#结束时间
|
|
|
t.column :end_time,:datetime
|
|
|
# 部门
|
|
|
- t.column :depart, :integer, :limit => 11, :default => 0
|
|
|
+ t.column :depart, :integer, :limit => 11, :null => false, :default => 0
|
|
|
# 充值金额
|
|
|
t.column :total, :integer, :limit => 11, :default => 0
|
|
|
# 赠提货券
|
|
|
@@ -76,7 +76,7 @@ class CreateRechargePromotions < ActiveRecord::Migration
|
|
|
add_index :presents, :order_id
|
|
|
|
|
|
add_column :balance_promotions, :max_total, :integer, :default=>0,:limit => 11
|
|
|
- add_column :balance_promotions, :depart, :integer, :default=>0,:limit => 11
|
|
|
+ add_column :balance_promotions, :depart, :integer, :null => false, :default=>0,:limit => 11
|
|
|
add_column :balance_promotions, :is_more, :boolean, :default=>0,:limit => 11
|
|
|
|
|
|
|