Add search for external users

This commit is contained in:
Sebastian Serth
2020-05-05 12:34:28 +02:00
parent 72498e21b1
commit 8e8404dffa
9 changed files with 44 additions and 13 deletions

View File

@ -1,7 +1,7 @@
class User < ApplicationRecord
self.abstract_class = true
ROLES = %w(admin teacher)
ROLES = %w(admin teacher learner)
belongs_to :consumer
has_many :study_group_memberships, as: :user