Sha256: de91a5e56f542f5952bdef7bed1ce3c90742bf70d9594fc3b186a7a75a9621d5

Contents?: true

Size: 300 Bytes

Versions: 9

Compression:

Stored size: 300 Bytes

Contents

class AddSalePriceCentsToProduct < (Rails::VERSION::MAJOR >= 5 ? ActiveRecord::Migration[4.2] : ActiveRecord::Migration)
  def change
    add_column :products, :sale_price_amount, :integer,
               default: 0, null: false
    add_column :products, :sale_price_currency_code, :string
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
money-rails-1.15.0 spec/dummy/db/migrate/20120712202655_add_sale_price_cents_to_product.rb
money-rails-1.14.0 spec/dummy/db/migrate/20120712202655_add_sale_price_cents_to_product.rb
money-rails-1.13.4 spec/dummy/db/migrate/20120712202655_add_sale_price_cents_to_product.rb
money-rails-1.13.3 spec/dummy/db/migrate/20120712202655_add_sale_price_cents_to_product.rb
money-rails-1.13.2 spec/dummy/db/migrate/20120712202655_add_sale_price_cents_to_product.rb
money-rails-1.13.1 spec/dummy/db/migrate/20120712202655_add_sale_price_cents_to_product.rb
money-rails-1.13.0 spec/dummy/db/migrate/20120712202655_add_sale_price_cents_to_product.rb
money-rails-1.12.0 spec/dummy/db/migrate/20120712202655_add_sale_price_cents_to_product.rb
money-rails-1.11.0 spec/dummy/db/migrate/20120712202655_add_sale_price_cents_to_product.rb