anthonator / paranoia_uniqueness_validator Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
This is not working with scope.
Gemfile
gem 'paranoia_uniqueness_validator', '1.2.0'
Model
validates :email, uniqueness_with_deleted: { scope: :company_friendship_id }
Hey there! We're bumping to Rails 6.1 soon. Is there any chance of making a new release of this gem with 7f7c2e2 in it?
Happy to pitch in if you'd like a hand with anything :)
I deleted a user with DEVISE, so when I'm going to create a new one that has a deleted email, the problem happens and the gem does not work
I've use an external database (schema is not under my control) that has a field , "deleted_timestamp" instead of "deleted_at".
acts_as_paranoid accepts a column name, like this:
acts_as_paranoid column: :account_deleted_ts
Is there any way to tell this validator to use a different column?
Such as:
validate :emission_component_uid, uniqueness_without_deleted: { scope: :routing_group_id, message: 'is already taken in the Routing Group' }
Thanks.
Hi,
I'm working for a company that relies on this gem and want to ask if there are any plans to update this it for use with rails5? I forked the repository and added some changes which work with activerecord5, but
the spec which tests the use of the default_sentinel_value
is failing and i can't seem to wrap my head around the issue. If you give me a hand, I'd be happy to do as much as i can to get a next version running. Any help is much appreciated.
Sincerely,
Max
Rails 4.2.0
undefined method `deserialize_attribute' for #ParanoiaUniquenessValidator::Validations::UniquenessWithoutDeletedValidator
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.