diff options
author | hellekin <hellekin@cepheide.org> | 2020-10-09 10:24:06 +0200 |
---|---|---|
committer | hellekin <hellekin@cepheide.org> | 2020-10-09 10:24:06 +0200 |
commit | f48ce2f4c934fde3862cdad593eececc7a567d61 (patch) | |
tree | d2c874f8ebf4686d07052fa333032c04ef49e861 /Gemfile.lock | |
parent | 31850c6ca118b7828dbaa3ad1a87dab4287718f5 (diff) | |
download | incommon-map-f48ce2f4c934fde3862cdad593eececc7a567d61.tar.gz |
Add Classifications and Resource validations
- Turn `has_and_belongs_to_many` into `has_many :through`: now,
resources and sections are related through Classifications.
- Refactor usage of jsonb column to use ActiveRecord validations
- Attention! store_accessor:
NOTE: If you are using structured database data types (eg. PostgreSQL hstore/json, or MySQL 5.7+ json) there is no need for the
serialization provided by .store. Simply use .store_accessor instead to generate the accessor methods. Be aware that these
columns use a string keyed hash and do not allow access using a symbol.
NOTE: The default validations with the exception of uniqueness will work. For example, if you want to check for uniqueness with
hstore you will need to use a custom validation to handle it.
https://api.rubyonrails.org/classes/ActiveRecord/Store.html
Diffstat (limited to 'Gemfile.lock')
-rw-r--r-- | Gemfile.lock | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Gemfile.lock b/Gemfile.lock index 96d66e2..aa16165 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -120,11 +120,16 @@ GEM nokogiri (1.10.10) mini_portile2 (~> 2.4.0) pg (1.2.3) + phony (2.18.15) + phony_rails (0.14.13) + activesupport (>= 3.0) + phony (> 2.15) pry (0.13.1) coderay (~> 1.1) method_source (~> 1.0) pry-rails (0.3.9) pry (>= 0.10.4) + public_suffix (4.0.6) puma (4.3.6) nio4r (~> 2.0) puma-plugin-systemd (0.1.5) @@ -196,6 +201,9 @@ GEM thread_safe (~> 0.1) uuid_parameter (0.2.6) rails (>= 5.2.1) + validate_url (1.0.13) + activemodel (>= 3.0.0) + public_suffix web-console (4.0.4) actionview (>= 6.0.0) activemodel (>= 6.0.0) @@ -224,6 +232,7 @@ DEPENDENCIES leaflet-rails listen (~> 3.2) pg (>= 0.18, < 2.0) + phony_rails pry pry-rails puma (~> 4.1) @@ -235,6 +244,7 @@ DEPENDENCIES turbolinks (~> 5) tzinfo-data uuid_parameter (~> 0.2.5) + validate_url web-console (>= 3.3.0) webpacker (~> 4.0) |