X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/9af03429f40bc8c9fcf8f680855c5c5c1fc4b2ad..e1491e3edb997dc6683acd1ebf1c1a95d09d4298:/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