20201219114699_create_profit_users.rb 387 B

1234567891011121314151617181920
  1. # encoding:utf-8
  2. class CreateProfitUsers < ActiveRecord::Migration
  3. def up
  4. #分佣方管理
  5. create_table :profit_users do |t|
  6. #微信ID
  7. t.column :wx_user_id, :integer,:null=>false, :default => 0
  8. #openId
  9. t.column :openid,:string
  10. t.timestamps
  11. end
  12. add_index :profit_users, :wx_user_id
  13. end
  14. def down
  15. drop_table :profit_users
  16. end
  17. end