20200828114641_create_update_orders.rb 518 B

12345678910111213141516171819202122
  1. # encoding:utf-8
  2. class CreateUpdateOrders < ActiveRecord::Migration
  3. def up
  4. #更改订单物流信息表
  5. create_table :update_orders do |t|
  6. # 订单ID
  7. t.column :order_id, :string,:limit => 256
  8. # 物流编号
  9. t.column :express_order_no, :string,:limit => 256
  10. # 物流公司
  11. t.column :express_company, :string,:limit => 256
  12. # 是否处理
  13. t.column :status, :boolean, :default=>1
  14. t.timestamps
  15. end
  16. end
  17. def down
  18. drop_table :update_orders
  19. end
  20. end