activerecord-postgres_enum 1.6.0 → 1.6.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1df28277031794a3f9e309a5339cee4ba229b548932d64e50c28413902a00991
|
4
|
+
data.tar.gz: f0538fb0989288c4b692bbffc379fde0a26108a57ce6ff41d9320b3738008f7f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b724dfcf0872fc8abd7134b4f0bc6b7c885c82996841aa9762c7e53b912f9f969b0ac4d8dc912eac1049ca6ae7eb1298bfd57575a956a00c27e781150c8f735
|
7
|
+
data.tar.gz: 777b145a8bbaabed85431b408f630da1f80066e54311500e4fe3daa6ccf5039961c3ffa5a20a55501eb07313e2cfa96100305d26e97be569db7a07759c1cf5c8
|
@@ -14,14 +14,15 @@ module ActiveRecord
|
|
14
14
|
|
15
15
|
def dump_enums(stream)
|
16
16
|
statements = []
|
17
|
+
if @connection.respond_to?(:enums)
|
18
|
+
@connection.enums.each do |name, values|
|
19
|
+
values = values.map { |v| " #{v.inspect}," }.join("\n")
|
20
|
+
statements << " create_enum #{name.inspect}, [\n#{values}\n ], force: :cascade"
|
21
|
+
end
|
17
22
|
|
18
|
-
|
19
|
-
|
20
|
-
statements << " create_enum #{name.inspect}, [\n#{values}\n ], force: :cascade"
|
23
|
+
stream.puts statements.join("\n\n")
|
24
|
+
stream.puts
|
21
25
|
end
|
22
|
-
|
23
|
-
stream.puts statements.join("\n\n")
|
24
|
-
stream.puts
|
25
26
|
end
|
26
27
|
end
|
27
28
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-postgres_enum
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Merkushin
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-08-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -120,29 +120,29 @@ dependencies:
|
|
120
120
|
requirements:
|
121
121
|
- - "~>"
|
122
122
|
- !ruby/object:Gem::Version
|
123
|
-
version: '
|
123
|
+
version: '5.0'
|
124
124
|
type: :development
|
125
125
|
prerelease: false
|
126
126
|
version_requirements: !ruby/object:Gem::Requirement
|
127
127
|
requirements:
|
128
128
|
- - "~>"
|
129
129
|
- !ruby/object:Gem::Version
|
130
|
-
version: '
|
130
|
+
version: '5.0'
|
131
131
|
- !ruby/object:Gem::Dependency
|
132
132
|
name: standard
|
133
133
|
requirement: !ruby/object:Gem::Requirement
|
134
134
|
requirements:
|
135
135
|
- - "~>"
|
136
136
|
- !ruby/object:Gem::Version
|
137
|
-
version: '
|
137
|
+
version: '1.1'
|
138
138
|
type: :development
|
139
139
|
prerelease: false
|
140
140
|
version_requirements: !ruby/object:Gem::Requirement
|
141
141
|
requirements:
|
142
142
|
- - "~>"
|
143
143
|
- !ruby/object:Gem::Version
|
144
|
-
version: '
|
145
|
-
description:
|
144
|
+
version: '1.1'
|
145
|
+
description:
|
146
146
|
email:
|
147
147
|
- merkushin.m.s@gmail.com
|
148
148
|
executables: []
|
@@ -164,7 +164,7 @@ licenses:
|
|
164
164
|
- MIT
|
165
165
|
metadata:
|
166
166
|
allowed_push_host: https://rubygems.org
|
167
|
-
post_install_message:
|
167
|
+
post_install_message:
|
168
168
|
rdoc_options: []
|
169
169
|
require_paths:
|
170
170
|
- lib
|
@@ -180,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
180
180
|
version: '0'
|
181
181
|
requirements: []
|
182
182
|
rubygems_version: 3.1.2
|
183
|
-
signing_key:
|
183
|
+
signing_key:
|
184
184
|
specification_version: 4
|
185
185
|
summary: Integrate PostgreSQL's enum data type into ActiveRecord's schema and migrations.
|
186
186
|
test_files: []
|