Displaying 1 result from an estimated 1 matches for "rails2_my_depot".
2006 Aug 04
8
Demo in rails2.pdf of add_price migration, PostgreSQL 8.1.4
...class AddPrice < ActiveRecord::Migration
def self.up
add_column :products, :price, :decimal, :precision => 8, :scale => 2,
:default => 0
end
def self.down
remove_column :products, :price
end
end
I see this error when I walk through the demo:
bash mac maco /pt/books/rails2_my_depot/depot 9 $
bash mac maco /pt/books/rails2_my_depot/depot 9 $ rake db:migrate --trace
(in /pt/books/rails2_my_depot/depot)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:migrate
== AddPrice: migrating
=========================================...