ar-enum 0.2.0 → 0.2.1

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
  SHA256:
3
- metadata.gz: 7d0d98ef7326a262b83b299baaf0912de2452f3cfba75e4ce47365896fa82bdc
4
- data.tar.gz: 825fb4e5a0e0911eaff410324abaf15a72251b5434dbfcbfb2f71b57cbf161c4
3
+ metadata.gz: c54482529b0c9ca4c656af951d450a415701f1f5be9bb03bb1779f28b3e1a61d
4
+ data.tar.gz: 79feea073eb9ac0669e5a7b1d28218ae6b800f59270ca023c38b0f7dc4705b60
5
5
  SHA512:
6
- metadata.gz: a13ac7fde7ec4ddb9ec49182b16cfe23d8c0ce1f1e3c6313dda9714f5e0b5b7a57d608196fb9c47c43f59019a8132ecc8f1b8118f4b61fc514b9d277db2869e1
7
- data.tar.gz: d40f5cb1237b57d14b5d188ef4bbfd56a590658ae93f5e640490692d7a961eea5fe5d2e18d4877b3cc133273f0dcde0ed54508327acb4930ec689608e21e8ede
6
+ metadata.gz: b6909bccd2dff996432fa2117b07746f4c5cc12c6905f31b5b1eae16fbbc57bca9a8fde2843fe0de705cbd786e138f5db072131420eea90a0693da87b1dae024
7
+ data.tar.gz: 7502f7eb5291001f8e51bc52184426002c0d075042380fa2e27d01316b32b64ee399a2c1a93cce40a8d0a9dbbe006e7de389a35ace07df7f311b824664b42134
@@ -18,3 +18,4 @@ end
18
18
  ActiveRecord::Migration::CommandRecorder.include AR::Enum::CommandRecorder
19
19
  ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.include AR::Enum::Adapter
20
20
  ActiveRecord::SchemaDumper.prepend AR::Enum::SchemaDumper
21
+ ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::NATIVE_DATABASE_TYPES[:enum] = {name: "character varying"}
@@ -15,11 +15,11 @@ module AR
15
15
 
16
16
  list.each do |row|
17
17
  labels = row["labels"].split(",")
18
- name = row["name"]
18
+ name = row["name"].to_sym
19
19
 
20
20
  statement = [
21
21
  " create_enum",
22
- "#{name.to_sym.inspect},",
22
+ "#{name.inspect},",
23
23
  labels.inspect
24
24
  ].join(" ")
25
25
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module AR
4
4
  module Enum
5
- VERSION = "0.2.0"
5
+ VERSION = "0.2.1"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ar-enum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nando Vieira
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-03-10 00:00:00.000000000 Z
11
+ date: 2019-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord