add basic support for labels
This commit is contained in:
11
app/models/label.rb
Normal file
11
app/models/label.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
class Label < ActiveRecord::Base
|
||||
validates_presence_of :name
|
||||
belongs_to :role
|
||||
has_and_belongs_to_many :forums
|
||||
has_many :forumthreads
|
||||
|
||||
def to_s
|
||||
name.upcase
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user