database_validations 1.1.1
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:
=
安装:
=
Runtime 依赖 (1):
activerecord
>= 4.2.0
Development 依赖 (10):
benchmark-ips
~> 2.7
bundler
~> 2.0
db-query-matchers
>= 0.9
mysql2
>= 0
pg
>= 0
rake
~> 13.0
rspec
~> 3.0
rubocop
~> 0.60
rubocop-rspec
~> 1.30
sqlite3
~> 1.3