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: 2e17c56968fbd7a8ac81f788a79d5991931d592e
4
- data.tar.gz: 38c63b91ad884af5c511bbb510d82558008c41e0
3
+ metadata.gz: bd92ebb4f254767e759e5edd4831023af1b50d78
4
+ data.tar.gz: 325d3ef23986f243d390edced3cf94ffec916e5a
5
5
  SHA512:
6
- metadata.gz: a7df91958df396e136a07fc5c82903c57c1592711c6adcd6d4bc03cb3244ac4da0293597f860a8aae7dbd48de8adf7d85ac8d18b48b25b6d3300db28d0d098cb
7
- data.tar.gz: b9cef24566bea9c4947be955b3fa32c542d115a2393ca951b8b72e5e5f3fd08952822e8dc2930fd509b3176a33eb2f59d86e5563a999245d794128dd33900384
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
@@ -1,3 +1,3 @@
1
1
  module ProductRails
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  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.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-09 00:00:00.000000000 Z
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