Added new role for moderator to Groups

• Added:
- new role for moderator to Groups
This commit is contained in:
mgabdev
2020-09-02 18:06:38 -05:00
parent cc224d7659
commit ac9b9e8448
8 changed files with 61 additions and 19 deletions

View File

@@ -13,7 +13,10 @@
class GroupAccount < ApplicationRecord
self.ignored_columns = ["unread_count"]
enum role: { admin: "admin" }
enum role: {
admin: "admin",
moderator: "moderator"
}
belongs_to :group
belongs_to :account