README.md in pgrel-0.3.0 vs README.md in pgrel-0.3.1
- old
+ new
@@ -1,6 +1,7 @@
-[](https://rubygems.org/gems/pgrel) [](https://travis-ci.org/palkan/pgrel)
+[](https://rubygems.org/gems/pgrel)
+
## Pgrel
ActiveRecord extension for querying hstore, array and jsonb.
@@ -9,18 +10,18 @@
#### Install
In your Gemfile:
```ruby
-gem "pgrel", "~> 0.2"
+gem "pgrel", "~> 0.3"
```
### HStore
#### Querying
-The functionality is based on ActiveRecord `WhereChain`.
+The functionality is based on ActiveRecord `WhereChain`.
To start querying call `where(:store_name)` and chain it with store-specific call (see below).
Query by key value:
```ruby
@@ -101,10 +102,10 @@
### JSONB
All queries and updates for Hstore also available for JSONB.
-**NOTE**. Querying by array value always resolves to `(... or ...)` statement.
+**NOTE**. Querying by array value always resolves to `(... or ...)` statement.
Thus it's impossible to query json array value, e.g.:
```ruby
Model.create!(tags: {main: ['a', 'b']})