|
@@ -10,10 +10,15 @@ class CreateProfitUsers < ActiveRecord::Migration
|
|
|
t.timestamps
|
|
t.timestamps
|
|
|
end
|
|
end
|
|
|
add_index :profit_users, :wx_user_id
|
|
add_index :profit_users, :wx_user_id
|
|
|
|
|
+ add_column :cash_balances, :profit_flag, :bool
|
|
|
|
|
+ add_column :cash_balances, :trade_no,:string
|
|
|
|
|
+
|
|
|
end
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
def down
|
|
|
drop_table :profit_users
|
|
drop_table :profit_users
|
|
|
|
|
+ remove_column :cash_balances, :trade_no
|
|
|
|
|
+ remove_column :cash_balances, :profit_flag
|
|
|
end
|
|
end
|
|
|
|
|
|
|
|
end
|
|
end
|