20201224114999_create_pay_configs.rb 425 B

12345678910111213141516171819202122
  1. # encoding:utf-8
  2. class CreatePayConfigs < ActiveRecord::Migration
  3. def up
  4. #支付管理
  5. create_table :pay_configs do |t|
  6. #部门ID
  7. t.column :depart, :integer,:null=>false, :default => 0
  8. #收款商户
  9. t.column :pay_code,:string
  10. #备注
  11. t.column :remark,:string
  12. t.timestamps
  13. end
  14. add_index :pay_configs, :depart
  15. end
  16. def down
  17. drop_table :pay_configs
  18. end
  19. end