X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/5b0962883553bb3573787151dafea8d92988d712..ab26a9efdb841318959abf2a263d3542da3b182e:/services/api/app/models/group.rb diff --git a/services/api/app/models/group.rb b/services/api/app/models/group.rb index 46bb447d10..7fb8fef42b 100644 --- a/services/api/app/models/group.rb +++ b/services/api/app/models/group.rb @@ -12,7 +12,9 @@ class Group < ArvadosModel include CanBeAnOwner include Trashable - serialize :properties, Hash + # Posgresql JSONB columns should NOT be declared as serialized, Rails 5 + # already know how to properly treat them. + attribute :properties, :jsonbHash, default: {} after_create :invalidate_permissions_cache after_update :maybe_invalidate_permissions_cache @@ -49,5 +51,4 @@ class Group < ArvadosModel end true end - end