Class: Workarea::TaxSeeds
- Inherits:
-
Object
- Object
- Workarea::TaxSeeds
- Defined in:
- app/seeds/workarea/tax_seeds.rb
Instance Method Summary collapse
Instance Method Details
#perform ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'app/seeds/workarea/tax_seeds.rb', line 3 def perform puts 'Adding tax rates...' category = Tax::Category.create!( name: 'Sales Tax', code: '001' ) category.rates.create!( percentage: 0.07, country: 'US', region: 'PA' ) category.rates.create!( percentage: 0.08, country: 'US', region: 'NY', tier_min: 0, tier_max: 200 ) category.rates.create!( percentage: 0.09, country: 'US', region: 'NY', tier_min: 200.01 ) end |