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

Version Path
educode_sales-1.10.74 db/migrate/20230510144317_create_educode_sales_sales_details.rb
educode_sales-1.10.73 db/migrate/20230510144317_create_educode_sales_sales_details.rb
educode_sales-1.10.72 db/migrate/20230510144317_create_educode_sales_sales_details.rb
educode_sales-1.10.71 db/migrate/20230510144317_create_educode_sales_sales_details.rb
educode_sales-1.10.70 db/migrate/20230510144317_create_educode_sales_sales_details.rb
educode_sales-1.10.59 db/migrate/20230510144317_create_educode_sales_sales_details.rb
educode_sales-1.10.58 db/migrate/20230510144317_create_educode_sales_sales_details.rb
educode_sales-1.10.49 db/migrate/20230510144317_create_educode_sales_sales_details.rb
educode_sales-1.10.48 db/migrate/20230510144317_create_educode_sales_sales_details.rb
educode_sales-1.10.46 db/migrate/20230510144317_create_educode_sales_sales_details.rb
educode_sales-1.10.41 db/migrate/20230510144317_create_educode_sales_sales_details.rb
educode_sales-1.10.37 db/migrate/20230510144317_create_educode_sales_sales_details.rb
educode_sales-1.10.36 db/migrate/20230510144317_create_educode_sales_sales_details.rb
educode_sales-1.10.35 db/migrate/20230510144317_create_educode_sales_sales_details.rb
educode_sales-1.10.34 db/migrate/20230510144317_create_educode_sales_sales_details.rb
educode_sales-1.10.33 db/migrate/20230510144317_create_educode_sales_sales_details.rb
educode_sales-1.10.31 db/migrate/20230510144317_create_educode_sales_sales_details.rb
educode_sales-1.10.30 db/migrate/20230510144317_create_educode_sales_sales_details.rb
educode_sales-1.10.29 db/migrate/20230510144317_create_educode_sales_sales_details.rb
educode_sales-1.10.28 db/migrate/20230510144317_create_educode_sales_sales_details.rb