Skip to content

Commit

Permalink
modify add_price_to_product migration
Browse files Browse the repository at this point in the history
  • Loading branch information
kyanny committed Jan 19, 2010
1 parent cec3864 commit 2a6611a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion depot/db/migrate/20100119100141_add_price_to_product.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
class AddPriceToProduct < ActiveRecord::Migration
def self.up
add_column :products, :price, :decimal
add_column :products, :price, :decimal,
:precision => 8, :scale => 2, :default => 0
end

def self.down
Expand Down

0 comments on commit 2a6611a

Please sign in to comment.