lib/flipper/adapters/sequel.rb in flipper-sequel-0.11.0 vs lib/flipper/adapters/sequel.rb in flipper-sequel-0.12.0

- old
+ new

@@ -125,14 +125,16 @@ args = { feature_key: feature.key, key: gate.key.to_s, } @gate_class.where(args).delete - @gate_class.create(gate_attrs(feature, gate, thing)) end when :set - @gate_class.create(gate_attrs(feature, gate, thing)) + begin + @gate_class.create(gate_attrs(feature, gate, thing)) + rescue ::Sequel::UniqueConstraintViolation + end else unsupported_data_type gate.data_type end true