RubyGems Navigation menu

database_validations 2.0.0

ActiveRecord provides validations on app level but it won't guarantee the consistent. In some cases, like `validates_uniqueness_of` it executes additional SQL query to the database and that is not very efficient. The main goal of the gem is to provide compatibility between database constraints and ActiveRecord validations with better performance and consistency.

Gemfile:
=

install:
=

Versions:

  1. 2.1.1 March 31, 2026 (12.5 KB)
  2. 2.1.0 March 31, 2026 (12.5 KB)
  3. 2.0.0 March 20, 2026 (11 KB)
  4. 1.2.0 February 07, 2026 (11 KB)
  5. 1.1.1 March 14, 2022 (11 KB)
Show all versions (41 total)

Runtime Dependencies (1):

activerecord >= 7.2.0

Development Dependencies (10):

bundler >= 0
mysql2 >= 0
pg >= 0
rake >= 0
rspec >= 0
rubocop >= 0
sqlite3 >= 0

Owners:

Pushed by:

Authors:

  • Evgeniy Demin

SHA 256 checksum:

=

Total downloads 1,430,764

For this version 19,170

Version Released:

License:

MIT

Required Ruby Version: >= 3.2.0

Links: