module EducodeSales class Role < ApplicationRecord has_many :role_areas, dependent: :destroy has_many :staff, dependent: :restrict_with_exception has_many :role_permissions, dependent: :destroy has_many :permissions, through: :role_permissions end end