```ruby
class Role < ActiveRecord::Base
	ADMIN = 'admin'
	CONVENOR = 'convenor'
	TUTOR = 'tutor'
	STUDENT = 'student'

	ROLES = [ADMIN, CONVENOR, TUTOR, STUDENT]


	scope :student, 	-> { Role.find(1) }
	scope :tutor, 		-> { Role.find(2) }
	scope :convenor,	-> { Role.find(3) }
	scope :moderator, 	-> { Role.find(4) }

	#
	# Helpers to get the role id's:
	# - These could be made into DB queries, but these values should not change
	#
	def self.tutor_id
		2
	end

	def self.convenor_id
		3
	end

	def self.student_id
		1
	end

	def self.moderator_id
		4
	end
end```

Change Role to use functions instead of scope queries
user
```ruby
class Role < ActiveRecord::Base
	
	def self.student
		Role.find(student_id)
	end

	def self.tutor
		Role.find(tutor_id)
	end

	def self.convenor
		Role.find(convenor_id)
	end

	def self.admin
		Role.find(admin_id)
	end

	#
	# Helpers to get the role id's:
	# - These could be made into DB queries, but these values should not change
	#
	def self.student_id
		1
	end

	def self.tutor_id
		2
	end

	def self.convenor_id
		3
	end

	def self.admin_id
		4
	end
end```
assistant