20201211114699_create_economic_statics.rb 571 B

1234567891011121314151617181920212223242526
  1. # encoding:utf-8
  2. class CreateEconomicStatics < ActiveRecord::Migration
  3. def up
  4. #经济账户统计
  5. create_table :economic_statics do |t|
  6. #开始时间
  7. t.column :begin_time,:datetime
  8. #提货券
  9. t.column :balance, :integer,:null=>false, :default => 0
  10. #佣金
  11. t.column :cash_balance, :integer,:null=>false, :default => 0
  12. #积分
  13. t.column :cent, :integer,:null=>false, :default => 0
  14. #备注
  15. t.column :remark,:string
  16. t.timestamps
  17. end
  18. end
  19. def down
  20. drop_table :economic_statics
  21. end
  22. end