Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Restored migrations that were accidentally omitted during tax_calcula…

…tor changes. [#453]
  • Loading branch information...
commit 453705db7207be771e9955d73edecc2f7795fae7 1 parent 0f12041
Sean Schofield authored
13 db/migrate/20080620100001_create_tax_rates.rb
... ... @@ -0,0 +1,13 @@
  1 +class CreateTaxRates < ActiveRecord::Migration
  2 + def self.up
  3 + create_table :tax_rates do |t|
  4 + t.references :state
  5 + t.decimal :amount, :precision => 8, :scale => 4
  6 + t.timestamps
  7 + end
  8 + end
  9 +
  10 + def self.down
  11 + drop_table :tax_rates
  12 + end
  13 +end
17 db/migrate/20080704192456_update_tax_rates_add_zones_etc.rb
... ... @@ -0,0 +1,17 @@
  1 +class UpdateTaxRatesAddZonesEtc < ActiveRecord::Migration
  2 + def self.up
  3 + change_table :tax_rates do |t|
  4 + t.rename :state_id, :zone_id
  5 + t.integer :tax_type
  6 + t.references :tax_category
  7 + end
  8 + end
  9 +
  10 + def self.down
  11 + change_table :tax_rates do |t|
  12 + t.rename :zone_id, :state_id
  13 + t.remove_column :tax_type
  14 + t.remove_column :tax_category_id
  15 + end
  16 + end
  17 +end

0 comments on commit 453705d

Please sign in to comment.
Something went wrong with that request. Please try again.