All Projects → anthonator → Paranoia_uniqueness_validator

anthonator / Paranoia_uniqueness_validator

Licence: mit

Programming Languages

ruby
36898 projects - #4 most used programming language

Labels

Projects that are alternatives of or similar to Paranoia uniqueness validator

Render async
render_async lets you include pages asynchronously with AJAX
Stars: ✭ 974 (+2219.05%)
Mutual labels:  rails
Creds
Encrypted & plain text credentials for multiple environments
Stars: ✭ 38 (-9.52%)
Mutual labels:  rails
Drafting
Ruby gem for saving drafts of ActiveRecord models
Stars: ✭ 41 (-2.38%)
Mutual labels:  rails
Activeadmin blaze theme
ActiveAdmin theme based on Blaze CSS toolkit
Stars: ✭ 35 (-16.67%)
Mutual labels:  rails
Redmine bootstrap kit
A Redmine plugin which makes developing your own Redmine plugin easy ;)
Stars: ✭ 36 (-14.29%)
Mutual labels:  rails
Tracks
Tracks is a GTD™ web application, built with Ruby on Rails
Stars: ✭ 991 (+2259.52%)
Mutual labels:  rails
Instagram Scheduler
📷 Beautiful way to get shadowbanned on Instagram by ⏰ scheduling your 🌁 photos.
Stars: ✭ 33 (-21.43%)
Mutual labels:  rails
Ml competition platform
Kaggle-like machine learning competition platform
Stars: ✭ 42 (+0%)
Mutual labels:  rails
Texterify
The localization management system.
Stars: ✭ 37 (-11.9%)
Mutual labels:  rails
Hours
Time registration that doesn't suck
Stars: ✭ 1,003 (+2288.1%)
Mutual labels:  rails
Buttercms Rails
Rails SDK for ButterCMS (https://buttercms.com)
Stars: ✭ 35 (-16.67%)
Mutual labels:  rails
Odbc adapter
An ActiveRecord ODBC adapter
Stars: ✭ 36 (-14.29%)
Mutual labels:  rails
Niklick
Rails Versioned API solution template for hipsters! (Ruby, Ruby on Rails, REST API, GraphQL, Docker, RSpec, Devise, Postgress DB)
Stars: ✭ 39 (-7.14%)
Mutual labels:  rails
Ununiga
[은는이가] 한글 조사(助詞) 대응 I18n engine extension
Stars: ✭ 34 (-19.05%)
Mutual labels:  rails
Ar Uuid
Override migration methods to support UUID columns without having to be explicit about it.
Stars: ✭ 41 (-2.38%)
Mutual labels:  rails
Tolaria
A Rails CMS framework for making your editors happy.
Stars: ✭ 33 (-21.43%)
Mutual labels:  rails
Chinese regions rails
中国省市区县数据库,包含行政编码,邮政编码,地区拼音和简拼
Stars: ✭ 38 (-9.52%)
Mutual labels:  rails
Chatwoot
Open-source customer engagement suite, an alternative to Intercom, Zendesk, Salesforce Service Cloud etc. 🔥💬
Stars: ✭ 11,554 (+27409.52%)
Mutual labels:  rails
Nerdnews
A free and open source social news website focusing on computer science and FOSS news for Persian community
Stars: ✭ 41 (-2.38%)
Mutual labels:  rails
Sorcery
Magical Authentication
Stars: ✭ 998 (+2276.19%)
Mutual labels:  rails

ParanoiaUniquenessValidator

Adds validates_uniqueness_without_deleted.

This validator will ignore any record that has a non-null value for the deleted_at field. This gem was made specifically for use with the Paranoia gem but it can be used with any gem that uses the deleted_at field for marking records as deleted.

Gem Version ci Coverage Status Code Climate

Installation

Add this line to your application's Gemfile:

# Rails 3
gem 'paranoia_uniqueness_validator', '0.1.0'

# Rails 4
gem 'paranoia_uniqueness_validator', '1.1.0'

# Rails 5.0
gem 'paranoia_uniqueness_validator', '2.0.0'

# Rails 5.1
gem 'paranoia_uniqueness_validator', '3.1.0'

# Rails 6
gem 'paranoia_uniqueness_validator', '3.3.0'

And then execute:

$ bundle

Or install it yourself as:

$ gem install paranoia_uniqueness_validator

Configuration

This validator supports all configuration options used by the base ActiveRecord uniqueness validator. For more information check out the Rails API documentation.

Usage

class SomeModel < ActiveRecord::Base
  validates :some_field, uniqueness_without_deleted: true
end

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].