sequential 0.0.2 → 0.0.3

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: 2df1cbed2366f30468d82190e4cab0aee6185d72
4
- data.tar.gz: 080fe996b46f642e4553a0057e5a704866fb3531
3
+ metadata.gz: 554ce5313498f74335ce882f3ed2e7852385daa9
4
+ data.tar.gz: f48888ad9fe5d0a6ba8ef237799e582d368a7104
5
5
  SHA512:
6
- metadata.gz: af594c7cea0ff9d2000aacd9418a4396e27d440bfe2cf76d6c0559998b654d6d1e6ea186457818d92c653b26ee219aea2de2e377d242fbdd9399efe026537d7c
7
- data.tar.gz: 3a49c1b3361408b494b0e3abab7470ace9a055c4e7bd2d97855ff9259995c8d5a2aed3c1bf6f9bdf326ff80ea9f7f26ef4dfbb475a17ef5033c198dd9f4884ba
6
+ metadata.gz: 17304da936fa779cb8e4ed7bed8c7a31f85c24039de945929fc9e294c4ead85c53101af4a39e30b48b643cbb569ad0a9a4ad2a1e5fa866e3905f63de33aa5d76
7
+ data.tar.gz: b2e97905f381142003ff135140f2334c40c120c4ff5c3b49137b27dc67aff2f3a7f67bab78b0f0b85098683b9f15294e1aa729ac7944c31a2847f94a9d8d9802
@@ -4,7 +4,7 @@ class CreateSequential < ActiveRecord::Migration
4
4
  t.string :model
5
5
  t.string :column
6
6
  t.string :scope
7
- t.integer :scope_value
7
+ t.string :scope_value
8
8
  t.integer :value
9
9
  t.timestamps
10
10
  end
@@ -18,7 +18,7 @@ module Sequential
18
18
  }
19
19
 
20
20
  where_opts.merge!( scope: scope.to_s,
21
- scope_value: record.send(scope.to_sym),
21
+ scope_value: record.send(scope.to_sym).to_s,
22
22
  ) if scope
23
23
 
24
24
  sequence = Sequential::Sequence.where(where_opts).
@@ -1,3 +1,3 @@
1
1
  module Sequential
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -4,7 +4,7 @@ class CreateSequential < ActiveRecord::Migration
4
4
  t.string :model
5
5
  t.string :column
6
6
  t.string :scope
7
- t.integer :scope_value
7
+ t.string :scope_value
8
8
  t.integer :value
9
9
  t.timestamps
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sequential
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Austin Lin
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-11-04 00:00:00.000000000 Z
12
+ date: 2013-11-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler