rescue_unique_constraint-cadetstar 1.6.1 → 1.6.2
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: 39cbeb8736e8dba203820bdf7b36693d5ca090197a2aa930f4b4f4243fd36d71
|
4
|
+
data.tar.gz: c3ff4b10d884deedad7a244a48715dc37f39fdd4442f5a9b390f0bfa341e4011
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 151599c75bf4cee1a71c4bf167c4b271b0beebfd52d2a26b6a80c700ceaaa74df87b82b7e23d005ba241e3d66df1477751216b516556385c6c093f5eaf9e4a51
|
7
|
+
data.tar.gz: 1c33be63da79cc351da4d388ad4979b7fd6077322154dbd0f1944435cf181137472fbaf92f09408b6664c1f23f5378d7fd4c1da9e8f8815d82ad5167ab12563d
|
@@ -6,8 +6,8 @@ module RescueUniqueConstraint
|
|
6
6
|
@indexes_to_rescue_on = []
|
7
7
|
end
|
8
8
|
|
9
|
-
def add_index(index, field)
|
10
|
-
indexes_to_rescue_on << Index.new(index, field)
|
9
|
+
def add_index(index, field, scope)
|
10
|
+
indexes_to_rescue_on << Index.new(index, field, scope)
|
11
11
|
end
|
12
12
|
|
13
13
|
def matching_indexes(e)
|