diff options
| author | Teddy Wing | 2017-12-19 16:35:09 +0100 |
|---|---|---|
| committer | Teddy Wing | 2017-12-19 16:46:34 +0100 |
| commit | c67e855f1bea867c75aff193b7d61561e55cbeaa (patch) | |
| tree | 91fef99cf7646fad77442cc512e8d538ac799132 /spec/support/with_commit.rb | |
| parent | dd70f15fef475fa1abc627244af22e843959bedc (diff) | |
| download | chouette-core-c67e855f1bea867c75aff193b7d61561e55cbeaa.tar.bz2 | |
Remove `hstore_accessor` usage
The places we were using `hstore_accessor` have now been converted to
Postgres JSON fields. Thus we no longer need `hstore_accessor` in order
to add accessors for the fields.
Instead we can use Rails' built-in support for Postgres JSON fields and
create accessors for our JSON hash keys with `store_accessor`. We get
rid of the data types because `store_accessor` doesn't work like that
and JSON already types our values with primitive data types.
Finally, add some extra validation tests now that the vaildation for our
JSON fields should work.
Refs #5316
Diffstat (limited to 'spec/support/with_commit.rb')
0 files changed, 0 insertions, 0 deletions
