piggybak 0.6.6 → 0.6.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- piggybak (0.6.6)
4
+ piggybak (0.6.7)
5
5
  activemerchant
6
6
  countries
7
7
  devise
@@ -0,0 +1,15 @@
1
+ class ConvertAllDecimalFields < ActiveRecord::Migration
2
+ def up
3
+ change_column :line_items, :price, :decimal, :precision => 10, :scale => 2
4
+ change_column :line_items, :unit_price, :decimal, :precision => 10, :scale => 2, :null => false, :defualt => 0.0
5
+ change_column :orders, :total, :decimal, :precision => 10, :scale => 2, :null => false
6
+ change_column :orders, :total_due, :decimal, :precision => 10, :scale => 2, :null => false
7
+ end
8
+
9
+ def down
10
+ change_column :line_items, :price, :decimal
11
+ change_column :line_items, :unit_price, :decimal
12
+ change_column :orders, :total, :decimal
13
+ change_column :orders, :total_due, :decimal
14
+ end
15
+ end
@@ -118,6 +118,7 @@ module Piggybak
118
118
  field :description
119
119
  field :price
120
120
  field :active
121
+ field :quantity
121
122
  field :unlimited_inventory do
122
123
  help "If true, backorders on this variant will be allowed, regardless of quantity on hand."
123
124
  end
@@ -1,3 +1,3 @@
1
1
  module Piggybak
2
- VERSION = "0.6.6"
2
+ VERSION = "0.6.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: piggybak
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.6
4
+ version: 0.6.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -166,6 +166,7 @@ files:
166
166
  - db/migrate/20111227150106_create_orders.rb
167
167
  - db/migrate/20111228231806_create_payment_methods.rb
168
168
  - db/migrate/20121018213421_drop_sort_from_line_items.rb
169
+ - db/migrate/20121022164235_convert_all_decimal_fields.rb
169
170
  - db/migrate/20111228231838_create_shipments.rb
170
171
  - db/migrate/20120104020930_populate_countries_and_states.rb
171
172
  - db/migrate/20111227213558_create_variants.rb
@@ -209,7 +210,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
209
210
  version: '0'
210
211
  segments:
211
212
  - 0
212
- hash: -2788183422372987607
213
+ hash: 849133339479137075
213
214
  required_rubygems_version: !ruby/object:Gem::Requirement
214
215
  none: false
215
216
  requirements:
@@ -218,7 +219,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
218
219
  version: '0'
219
220
  segments:
220
221
  - 0
221
- hash: -2788183422372987607
222
+ hash: 849133339479137075
222
223
  requirements: []
223
224
  rubyforge_project:
224
225
  rubygems_version: 1.8.23