On Wed, Sep 1, 2021 at 6:14 AM 'petr....@me.com' via sequel-talk < sequel-talk@googlegroups.com> wrote:
> Hi, > how can I disable/skip unique auto validations on all models? > > I've tried Sequel::Model.skip_auto_validations(:unique) but it's not > working... > skip_auto_validations only affects the specific model you call it on, it doesn't affect all subclasses. The simplest way is probably the following after loading the plugin: def (Sequel::Model).auto_validate_unique_columns [] end Thanks, Jeremy -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to sequel-talk+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sequel-talk/CADGZSSfX%2BNAmKeY_%2BpJFH%2B6V%3DWjvFzec3oY2YDi3A64PzS11gw%40mail.gmail.com.