Permalink
Browse files

Restored migrations that were accidentally omitted during tax_calcula…

…tor changes. [#453]
  • Loading branch information...
1 parent 0f12041 commit 453705db7207be771e9955d73edecc2f7795fae7 Sean Schofield committed Jun 25, 2009
@@ -0,0 +1,13 @@
+class CreateTaxRates < ActiveRecord::Migration
+ def self.up
+ create_table :tax_rates do |t|
+ t.references :state
+ t.decimal :amount, :precision => 8, :scale => 4
+ t.timestamps
+ end
+ end
+
+ def self.down
+ drop_table :tax_rates
+ end
+end
@@ -0,0 +1,17 @@
+class UpdateTaxRatesAddZonesEtc < ActiveRecord::Migration
+ def self.up
+ change_table :tax_rates do |t|
+ t.rename :state_id, :zone_id
+ t.integer :tax_type
+ t.references :tax_category
+ end
+ end
+
+ def self.down
+ change_table :tax_rates do |t|
+ t.rename :zone_id, :state_id
+ t.remove_column :tax_type
+ t.remove_column :tax_category_id
+ end
+ end
+end

0 comments on commit 453705d

Please sign in to comment.