radiant-shop-extension 0.92.0 → 0.92.1
Sign up to get free protection for your applications and to get access to all the features.
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.92.
|
1
|
+
0.92.1
|
@@ -0,0 +1,20 @@
|
|
1
|
+
class FixAddressableColumnType < ActiveRecord::Migration
|
2
|
+
def self.up
|
3
|
+
add_column :shop_addresses, :addressable_integer, :integer
|
4
|
+
ShopAddress.reset_column_information
|
5
|
+
ShopAddress.find_each do |address|
|
6
|
+
address.update_attribute(:addressable_integer, :addressable_id)
|
7
|
+
end
|
8
|
+
remove_column :shop_addresses, :addressable_id
|
9
|
+
|
10
|
+
add_column :shop_addresses, :addressable_id, :integer
|
11
|
+
ShopAddress.reset_column_information
|
12
|
+
ShopAddress.find_each do |address|
|
13
|
+
address.update_attribute(:addressable_id, :addressable_integer)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
def self.down
|
18
|
+
# no reverse
|
19
|
+
end
|
20
|
+
end
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{radiant-shop-extension}
|
8
|
-
s.version = "0.92.
|
8
|
+
s.version = "0.92.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Dirk Kelly", "John Barker", "Darcy Laycock"]
|
@@ -141,6 +141,7 @@ Gem::Specification.new do |s|
|
|
141
141
|
"db/migrate/20101011063133_setup_shop.rb",
|
142
142
|
"db/migrate/20101208045754_address_changes.rb",
|
143
143
|
"db/migrate/20101208121105_move_to_page_attachments.rb",
|
144
|
+
"db/migrate/20101214023052_fix_addressable_column_type.rb",
|
144
145
|
"db/seed.rb",
|
145
146
|
"db/seeds/forms.rb",
|
146
147
|
"db/seeds/layouts.rb",
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: radiant-shop-extension
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 365
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 92
|
9
|
-
-
|
10
|
-
version: 0.92.
|
9
|
+
- 1
|
10
|
+
version: 0.92.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Dirk Kelly
|
@@ -298,6 +298,7 @@ files:
|
|
298
298
|
- db/migrate/20101011063133_setup_shop.rb
|
299
299
|
- db/migrate/20101208045754_address_changes.rb
|
300
300
|
- db/migrate/20101208121105_move_to_page_attachments.rb
|
301
|
+
- db/migrate/20101214023052_fix_addressable_column_type.rb
|
301
302
|
- db/seed.rb
|
302
303
|
- db/seeds/forms.rb
|
303
304
|
- db/seeds/layouts.rb
|