<commit_before># ActiveRecord::StrictValidations

[![Gem Version](https://badge.fury.io/rb/activerecord_strict_validations.png)](https://rubygems.org/gems/activerecord_strict_validations)
[![Code Climate](https://codeclimate.com/github/mirego/activerecord_strict_validations.png)](https://codeclimate.com/github/mirego/activerecord_strict_validations)
[![Build Status](https://travis-ci.org/mirego/activerecord_strict_validations.png?branch=master)](https://travis-ci.org/mirego/activerecord_strict_validations)

`ActiveRecord::StrictValidations` adds validations to ActiveRecord models to make sure they do not trigger database errors.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'activerecord_strict_validations'
```

## Usage

```ruby
create_table "events" do |t|
  t.string   "name"
  t.string   "email", limit: 128
  t.text     "description"<commit_msg>Update README badges to use SVG images<commit_after># ActiveRecord::StrictValidations

<a href="https://rubygems.org/gems/activerecord_strict_validations"><img src="http://img.shields.io/gem/v/activerecord_strict_validations.svg" /></a>
<a href="https://codeclimate.com/github/mirego/activerecord_strict_validations"><img src="http://img.shields.io/codeclimate/github/mirego/activerecord_strict_validations.svg" /></a>
<a href="https://travis-ci.org/mirego/activerecord_strict_validations"><img src="http://img.shields.io/travis/mirego/activerecord_strict_validations.svg" /></a>

`ActiveRecord::StrictValidations` adds validations to ActiveRecord models to make sure they do not trigger database errors.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'activerecord_strict_validations'
```

## Usage

```ruby
create_table "events" do |t|
  t.string   "name"
  t.string   "email", limit: 128
  t.text     "description"
{'fraction_non_alphanumeric': 0.13562091503267973, 'fraction_numerical': 0.0032679738562091504, 'mean_word_length': 6.377510040160643, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 12, 'https://': 9, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4164087', 'n_tokens_mistral': 651, 'n_tokens_neox': 594, 'n_words': 107}