power_enum 2.5.0 → 2.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/README.markdown +1 -0
- data/lib/power_enum/schema/schema_statements.rb +6 -1
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OGY0N2UwZGY0NmQyMjVjMWFjOTk3ZTdlMzY4MmNlZGEwOWIxNDM2Yw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZjUxZTliZWQ2NGRiMTA2NmE1MmEzMDU1ZjhhNTMwMTZkZmI2MDgyNQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NmJmMmMyYTAzMjlhMTBhNTgyMjRlMWViMWEwODVkZWM0MGZiZGNhNDNiNjli
|
10
|
+
Nzg1NGVjYjY2NmZlYzEwY2IyNGRjNmRhYWE0ZThkYjQ2ODFlMTQ4YThmYzlk
|
11
|
+
ZGYyOWZkZGIxM2ZlNzU5YTlmZmNiMzE4NTY2ZWY2NmZiMmM4NjU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MTU4MDYzZGYzNzFmMDljZTQ4MzAwZDRjNDk5MTIyMGNhZDEyOTQyNzRjNTIw
|
14
|
+
ZmMzYjdiYzE5YmVlYTkyMjAxNjRiNDgyODdiMmY3MzYzNjMyMGUxNGVhOTky
|
15
|
+
MTZjMzQ3NjY0N2ZmYjA3MjczMTBhNDc4ZjkwYjU5NzY1OTNkNjQ=
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/README.markdown
CHANGED
@@ -205,6 +205,7 @@ Creates a new enum table. `enum_name` will be automatically pluralized. The foll
|
|
205
205
|
- [:active] Set this to `true` to have a boolean 'active' column generated. The 'active' column will have the options of NOT NULL and DEFAULT TRUE.
|
206
206
|
- [:timestamps] Set this to `true` to have the timestamp columns (created\_at and updated\_at) generated
|
207
207
|
- [:table_options] Allows you to set a hash which will be passed directly to `create_table`.
|
208
|
+
- [:schema] Allows you to create the enum table in a different schema (Version 2.6.0).
|
208
209
|
|
209
210
|
You can also pass in a block that takes a table object as an argument, like `create_table`.
|
210
211
|
|
@@ -79,6 +79,11 @@ module PowerEnum::Schema
|
|
79
79
|
# Notice that a unique index is automatically created in each case on the proper name column.
|
80
80
|
def create_enum(enum_name, options = {}, &block)
|
81
81
|
enum_table_name = enum_name.pluralize
|
82
|
+
|
83
|
+
# For compatibility with PgPower
|
84
|
+
schema_name = options[:schema]
|
85
|
+
enum_table_name = "#{schema_name}.#{enum_table_name}" if schema_name
|
86
|
+
|
82
87
|
name_column = options[:name_column] || :name
|
83
88
|
generate_description = !!options[:description]
|
84
89
|
generate_active = !!options[:active]
|
@@ -119,4 +124,4 @@ module PowerEnum::Schema
|
|
119
124
|
|
120
125
|
end
|
121
126
|
|
122
|
-
end
|
127
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: power_enum
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Trevor Squires
|
@@ -41,7 +41,7 @@ cert_chain:
|
|
41
41
|
L2xKOGNVV2ZuUytGU0lMVm5tSXJoUGZyRHF3CmluWG9GdW5CNzJFTDZvcHd1
|
42
42
|
a2M3Y0Q5cFVtc05zVjBIZEFTdENHNWpPaGM1VHhMMVpYaFg4UXFlMmlOb25n
|
43
43
|
PT0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=
|
44
|
-
date: 2014-
|
44
|
+
date: 2014-04-25 00:00:00.000000000 Z
|
45
45
|
dependencies:
|
46
46
|
- !ruby/object:Gem::Dependency
|
47
47
|
name: rails
|
metadata.gz.sig
CHANGED
Binary file
|