|
@@ -45,6 +45,10 @@ class CreatePromotions < ActiveRecord::Migration
|
|
|
t.column :send_nums3, :integer, :limit => 11, :default => 0
|
|
t.column :send_nums3, :integer, :limit => 11, :default => 0
|
|
|
# 状态
|
|
# 状态
|
|
|
t.column :is_enable, :boolean, :default=>1
|
|
t.column :is_enable, :boolean, :default=>1
|
|
|
|
|
+ # 赠代办金
|
|
|
|
|
+ t.column :cash, :integer, :limit => 11, :default => 0
|
|
|
|
|
+ # 赠积分
|
|
|
|
|
+ t.column :cent, :integer, :limit => 11, :default => 0
|
|
|
t.timestamps
|
|
t.timestamps
|
|
|
end
|
|
end
|
|
|
add_index :shop_applications, :user_id
|
|
add_index :shop_applications, :user_id
|