declare_schema 1.4.0.colin.2 → 1.4.0.colin.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/declare_schema/model.rb +2 -2
- data/lib/declare_schema/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d774a80915bfd6f22349e18be176e237c901d595a871144a08d73478946147b
|
4
|
+
data.tar.gz: 0cc5d18ba43357d595dff24ff3a2bf3f9443b9d3f8ed9ec909d53708b2820984
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96b51490860259a27e1b1fcbe02bab2722ca069ec9ee314879ccf563fc4f420c44485de9ec57035165a057953a9ba4705c5575c38f6a4592088d47c8704dafc1
|
7
|
+
data.tar.gz: ddb153c4999b17c8c74885b4bfa9ef7488992c760797808af40840cdb579f8e162d66b0cf043b1543905ef1282252c5dd371d40881cd403bdba2429b6590f81a
|
data/Gemfile.lock
CHANGED
data/lib/declare_schema/model.rb
CHANGED
@@ -122,7 +122,7 @@ module DeclareSchema
|
|
122
122
|
index_options = {}
|
123
123
|
case index_value
|
124
124
|
when String
|
125
|
-
Kernel.warn("belongs_to index: 'name' is deprecated; use index: { name: 'name' } instead (in #{
|
125
|
+
Kernel.warn("belongs_to index: 'name' is deprecated; use index: { name: 'name' } instead (in #{name})")
|
126
126
|
index_options[:name] = index_value
|
127
127
|
# when false -- impossible since we checked that above
|
128
128
|
when true
|
@@ -134,7 +134,7 @@ module DeclareSchema
|
|
134
134
|
end
|
135
135
|
|
136
136
|
if options.has_key?(:unique)
|
137
|
-
Kernel.warn("belongs_to unique: true|false is deprecated; use index: { unique: true|false } instead (in #{
|
137
|
+
Kernel.warn("belongs_to unique: true|false is deprecated; use index: { unique: true|false } instead (in #{name})")
|
138
138
|
index_options[:unique] = options.delete(:unique)
|
139
139
|
end
|
140
140
|
|