started implementing teams
This commit is contained in:
10
app/models/team.rb
Normal file
10
app/models/team.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
class Team < ActiveRecord::Base
|
||||
has_and_belongs_to_many :internal_users
|
||||
alias_method :members, :internal_users
|
||||
|
||||
validates :name, presence: true
|
||||
|
||||
def to_s
|
||||
name
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user