cleaned up, added threadreplies, added info
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
class Comment < ActiveRecord::Base
|
||||
|
||||
belongs_to :user_author, class_name: "User", foreign_key: "user_author_id"
|
||||
belongs_to :user_editor, class_name: "User", foreign_key: "user_editor_id"
|
||||
|
||||
validates_presence_of :content, :author, :blogpost
|
||||
validates_length_of :content, in: 4..1000
|
||||
|
||||
6
app/models/info.rb
Normal file
6
app/models/info.rb
Normal file
@@ -0,0 +1,6 @@
|
||||
class Info < ActiveRecord::Base
|
||||
self.table_name = "info"
|
||||
|
||||
validates_presence_of :title, :content
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user