<commit_before>![Codeship](https://www.codeship.io/projects/db3ce4f0-c3c8-0130-9c44-167bc618456a/status?branch=master)

# HstoreAccessor

Hstore Accessor allows you to treat fields on an hstore column as though they were actual columns being picked up by ActiveRecord. This is especially handy when trying to avoid sparse columns while making use of [single table inheritence](#single-table-inheritance). Hstore Accessor currently supports ActiveRecord versions 4.0, 4.1, and 4.2.

## Table of Contents

* [Installation](#installation)
* [Setup](#setup)
* [ActiveRecord methods generated for fields](#activerecord-methods-generated-for-fields)
* [Scopes](#scopes)
  * [String Fields](#string-fields)
  * [Integer, Float, and Decimal Fields](#integer-float-decimal-fields)
  * [Datetime Fields](#datetime-fields)
  * [Date Fields](#date-fields)
  * [Array Fields](#array-fields)
  * [Boolean Fields](#boolean-fields)
* [Single Table Inheritence](#single-table-inheritance)
* [Upgrading](#upgrading)
* [Contributing](#contributing)
  - [Basics](#basics)
  - [Developing Locally](#developing-locally)

## Installation

Add this line to your application's Gemfile:
<commit_msg>added note about JsonbAccessor to readme<commit_after># HstoreAccessor

Hstore Accessor allows you to treat fields on an hstore column as though they were actual columns being picked up by ActiveRecord. This is especially handy when trying to avoid sparse columns while making use of [single table inheritence](#single-table-inheritance). Hstore Accessor currently supports ActiveRecord versions 4.0, 4.1, and 4.2.

Not a fan of hstore? Why not check out [Jsonb Accessor](https://github.com/devmynd/jsonb_accessor)?

## Table of Contents

* [Installation](#installation)
* [Setup](#setup)
* [ActiveRecord methods generated for fields](#activerecord-methods-generated-for-fields)
* [Scopes](#scopes)
  * [String Fields](#string-fields)
  * [Integer, Float, and Decimal Fields](#integer-float-decimal-fields)
  * [Datetime Fields](#datetime-fields)
  * [Date Fields](#date-fields)
  * [Array Fields](#array-fields)
  * [Boolean Fields](#boolean-fields)
* [Single Table Inheritence](#single-table-inheritance)
* [Upgrading](#upgrading)
* [Contributing](#contributing)
  - [Basics](#basics)
  - [Developing Locally](#developing-locally)

## Installation

Add this line to your application's Gemfile:

{'fraction_non_alphanumeric': 0.12452511608273534, 'fraction_numerical': 0.013929928239763613, 'mean_word_length': 5.810344827586207, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4452666', 'n_tokens_mistral': 769, 'n_tokens_neox': 699, 'n_words': 202}