piggybak 0.7.4 → 0.7.5
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a3e04625ac77678c260c682d46caea2666a1f09
|
4
|
+
data.tar.gz: 34960254b38cfdfb25277687ac0abb02ea8774d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f0129952e567782cd4dc5377ade33f65e36785671d94200c506402719437f0d73ef03f891806ca3a87b08ceeca48081341d1cc4b763a9b7176a9e030ded99d2
|
7
|
+
data.tar.gz: 2bbac1f4f6d2fe5426d3844a0ef6a4608c7938634fac6e303771b32c1fa53bf749aeffa6ec32fc9082e5e8af50995fd110ea23b33cb99199c6a6b57a3f645daa
|
data/Gemfile.lock
CHANGED
@@ -1,11 +1,10 @@
|
|
1
1
|
class AddPriceToLineItem < ActiveRecord::Migration
|
2
2
|
def up
|
3
|
-
|
4
|
-
|
5
|
-
change_table(:line_items) do |t|
|
6
|
-
t.timestamps
|
3
|
+
Piggybak::LineItem.class_eval do
|
4
|
+
self.table_name = 'line_items'
|
7
5
|
end
|
8
6
|
|
7
|
+
add_column :line_items, :price, :decimal, :null => false, :default => 0.0
|
9
8
|
Piggybak::LineItem.all.each do |line_item|
|
10
9
|
line_item.update_attribute(:price, line_item.total/line_item.quantity)
|
11
10
|
end
|
@@ -18,9 +18,6 @@ class LineItemRearchitecture < ActiveRecord::Migration
|
|
18
18
|
rename_column :line_items, :total, :price
|
19
19
|
change_column :line_items, :sellable_id, :integer, :null => true
|
20
20
|
add_column :line_items, :sort, :integer, :null => false, :default => 0
|
21
|
-
change_table(:line_items) do |t|
|
22
|
-
t.timestamps
|
23
|
-
end
|
24
21
|
|
25
22
|
add_column :shipments, :line_item_id, :integer
|
26
23
|
add_column :payments, :line_item_id, :integer
|
data/lib/piggybak/version.rb
CHANGED
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.7.
|
4
|
+
version: 0.7.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steph Skardal
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-
|
13
|
+
date: 2014-09-10 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: countries
|