projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch '21815-trigrams-exclude-ids'
[arvados.git]
/
services
/
api
/
app
/
models
/
virtual_machine.rb
diff --git
a/services/api/app/models/virtual_machine.rb
b/services/api/app/models/virtual_machine.rb
index 0b3557eef6c68a802c977436dc979c3c138fedfa..09687385cad88b29c4a388e713d805a67003de2d 100644
(file)
--- a/
services/api/app/models/virtual_machine.rb
+++ b/
services/api/app/models/virtual_machine.rb
@@
-9,9
+9,9
@@
class VirtualMachine < ArvadosModel
has_many(:login_permissions,
-> { where("link_class = 'permission' and name = 'can_login'") },
has_many(:login_permissions,
-> { where("link_class = 'permission' and name = 'can_login'") },
- foreign_key:
:head_uuid
,
+ foreign_key:
'head_uuid'
,
class_name: 'Link',
class_name: 'Link',
- primary_key:
:uuid
)
+ primary_key:
'uuid'
)
api_accessible :user, extend: :common do |t|
t.add :hostname
api_accessible :user, extend: :common do |t|
t.add :hostname