product_rails 0.1.1 → 0.1.2
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: bd92ebb4f254767e759e5edd4831023af1b50d78
|
4
|
+
data.tar.gz: 325d3ef23986f243d390edced3cf94ffec916e5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf8ed84ec9541f219c224dfb983e370b83677eb722115ace76c5092500cb89832328e947695f68e034e6ac1b9119a765de9b35fb27495a5fb5b9775547f2d0f5
|
7
|
+
data.tar.gz: 41eafdbaf546587c51a517ef77227fdb03cddd2808427d2dfc333b91c4a12c5d08e49b59b19b9e36943c723692e2d9ac56a9a7e5ad10d198ddd855de588da25f
|
@@ -0,0 +1,12 @@
|
|
1
|
+
class ChangeProductDecriptionColumnToText < ActiveRecord::Migration
|
2
|
+
def up
|
3
|
+
change_column :products, :description, :text
|
4
|
+
end
|
5
|
+
|
6
|
+
def down
|
7
|
+
Product.all.each do |product|
|
8
|
+
product.update_attributes(description: truncate(product.description, 255))
|
9
|
+
end
|
10
|
+
change_column :products, :description, :string
|
11
|
+
end
|
12
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: product_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Orgânica Digital
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -65,6 +65,7 @@ files:
|
|
65
65
|
- config/locales/pt-BR.yml
|
66
66
|
- db/migrate/20150206104816_create_products.rb
|
67
67
|
- db/migrate/20150209192603_rename_product_wheight_to_weight.rb
|
68
|
+
- db/migrate/20150210130905_change_product_decription_column_to_text.rb
|
68
69
|
- lib/product_rails.rb
|
69
70
|
- lib/product_rails/engine.rb
|
70
71
|
- lib/product_rails/version.rb
|