Sha256: 2c2edefdf38e07a589aacb41447036a736d023e4cb5f9650f3cec8dca8c836f0

Contents?: true

Size: 215 Bytes

Versions: 29

Compression:

Stored size: 215 Bytes

Contents

class ChangePriceInProducts < ActiveRecord::Migration
  def up
    change_column :products, :price, :decimal, :precision => 10, :scale => 4
  end

  def down
    change_column :products, :price, :decimal
  end

end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
simple_search_filter-0.0.11 test/dummy/db/migrate/20150512110331_change_price_in_products.rb
simple_search_filter-0.0.10 test/dummy/db/migrate/20150512110331_change_price_in_products.rb
simple_search_filter-0.0.9 test/dummy/db/migrate/20150512110331_change_price_in_products.rb
simple_search_filter-0.0.8 test/dummy/db/migrate/20150512110331_change_price_in_products.rb
simple_search_filter-0.0.6 test/dummy/db/migrate/20150512110331_change_price_in_products.rb
simple_search_filter-0.0.5 test/dummy/db/migrate/20150512110331_change_price_in_products.rb
simple_search_filter-0.0.4 test/dummy/db/migrate/20150512110331_change_price_in_products.rb
simple_search_filter-0.0.3 test/dummy/db/migrate/20150512110331_change_price_in_products.rb
simple_search_filter-0.0.2 test/dummy/db/migrate/20150512110331_change_price_in_products.rb