projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
16007: Separating 'trashed' from 'permissions' WIP
[arvados.git]
/
services
/
api
/
app
/
models
/
link.rb
diff --git
a/services/api/app/models/link.rb
b/services/api/app/models/link.rb
index a95feb83cdaf4cb6362ee7c7ab5a4e70cad43d49..ad7800fe679cb91936bde76f00566873cb369419 100644
(file)
--- a/
services/api/app/models/link.rb
+++ b/
services/api/app/models/link.rb
@@
-9,6
+9,7
@@
class Link < ArvadosModel
# Posgresql JSONB columns should NOT be declared as serialized, Rails 5
# already know how to properly treat them.
# Posgresql JSONB columns should NOT be declared as serialized, Rails 5
# already know how to properly treat them.
+ attribute :properties, :jsonbHash, default: {}
before_create :permission_to_attach_to_objects
before_update :permission_to_attach_to_objects
before_create :permission_to_attach_to_objects
before_update :permission_to_attach_to_objects
@@
-101,5
+102,4
@@
class Link < ArvadosModel
super
end
end
super
end
end
-
end
end