Sha256: fa00bf744d8ca7ccf73e843786ab691cb9b7a5a8a024b53fa4ad45b523f24298
Contents?: true
Size: 826 Bytes
Versions: 68
Compression:
Stored size: 826 Bytes
Contents
class CreateEducodeSalesSalesDetails < ActiveRecord::Migration[5.2] def change create_table :educode_sales_sales_details do |t| t.references :business t.references :product_catalog t.references :staff t.float :price t.float :amount t.float :total_price t.integer :custom_clazz t.date :delivery_date t.timestamps end EducodeSales::Permission.find_or_create_by(name: '查看销售明细', subject: 'Business', action: 'read_sales_detail', clazz: 'contract') EducodeSales::Permission.find_or_create_by(name: '编辑销售明细', subject: 'Business', action: 'edit_sales_detail', clazz: 'contract') EducodeSales::Permission.find_or_create_by(name: '删除销售明细', subject: 'Business', action: 'delete_sales_detail', clazz: 'contract') end end
Version data entries
68 entries across 68 versions & 1 rubygems