Sha256: 3292556aee2719f30ff9e545ca6f4eeeb78928bd60ea7fecae5bd42c11da5baf
Contents?: true
Size: 431 Bytes
Versions: 3
Compression:
Stored size: 431 Bytes
Contents
#--- # Excerpted from "Agile Web Development with Rails, 2nd Ed." # We make no guarantees that this code is fit for any purpose. # Visit http://www.pragmaticprogrammer.com/titles/rails2 for more book information. #--- 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
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
amrita2-2.0.0 | sample/depot/db/migrate/002_add_price.rb |
amrita2-2.0.1 | sample/depot/db/migrate/002_add_price.rb |
amrita2-2.0.2 | sample/depot/db/migrate/002_add_price.rb |