Archived
rails 4 and tons of stuff
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
class Blogpost < ActiveRecord::Base
|
||||
attr_accessible :title, :content, :author, :editor
|
||||
|
||||
validates_presence_of :title, :content, :author
|
||||
belongs_to :user_author, class_name: "User", foreign_key: "user_author_id"
|
||||
belongs_to :user_editor, class_name: "User", foreign_key: "user_editor_id"
|
||||
|
||||
Reference in New Issue
Block a user