Sha256: 1daf41a2d46139142c8ba97a2dcdfc13308f718a3e04288c9082e2f5698208a5
Contents?: true
Size: 563 Bytes
Versions: 2
Compression:
Stored size: 563 Bytes
Contents
class AddAttributesToProducts < ActiveRecord::Migration def self.up add_column :products, :number_of_units, :decimal add_column :products, :unit, :string add_column :products, :cost_per_unit, :decimal add_column :products, :shipping_method_id, :integer add_column :products, :shipping, :boolean end def self.down remove_column :products, :number_of_units remove_column :products, :unit remove_column :products, :cost_per_unit remove_column :products, :shipping_method_id remove_column :products, :shipping end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spree_suppliers-0.0.1 | db/migrate/20111018133543_add_attributes_to_products.rb |
spree_suppliers-0.60.3 | db/migrate/20111018133543_add_attributes_to_products.rb |