first release
This commit is contained in:
6
app/models/blogpost.rb
Normal file
6
app/models/blogpost.rb
Normal file
@@ -0,0 +1,6 @@
|
||||
class Blogpost < ActiveRecord::Base
|
||||
attr_accessible :title, :text
|
||||
validates_presence_of :title, :text, :user
|
||||
belongs_to :user
|
||||
has_many :comments
|
||||
end
|
||||
Reference in New Issue
Block a user