add roles to admin panel

This commit is contained in:
João Geonizeli
2022-07-21 10:45:48 -03:00
parent 734b6e911a
commit 705a465292
10 changed files with 209 additions and 100 deletions

View File

@@ -26,5 +26,7 @@ class User < ApplicationRecord
:omniauthable,
omniauth_providers: [:google_oauth2]
has_and_belongs_to_many :roles
validates :name, presence: true
end