Sha256: 2b1258543677d70c1400996cc8bf33a80a9ed890ed2f11f9229f222844530527
Contents?: true
Size: 638 Bytes
Versions: 1
Compression:
Stored size: 638 Bytes
Contents
class AddBaseChargeTypes def self.up ActiveRecord::Base.transaction do ChargeType.create(description: 'Shipping', internal_identifier: 'shipping', taxable: false) ChargeType.create(description: 'Tax', internal_identifier: 'tax', taxable: true) ChargeType.create(description: 'Assembly', internal_identifier: 'assembly', taxable: true) end end def self.down ActiveRecord::Base.transaction do ChargeType.find_by_internal_identifier('shipping').destroy ChargeType.find_by_internal_identifier('tax').destroy ChargeType.find_by_internal_identifier('assembly').destroy end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
erp_orders-4.2.0 | db/data_migrations/20150309004308_add_base_charge_types.rb |