public
Description: The open source social networking platform in Ruby on Rails from the author of RailsSpace
Homepage: http://insoshi.com
Clone URL: git://github.com/insoshi/insoshi.git
Search Repo:
Michael Hartl (author)
Tue May 13 11:22:48 -0700 2008
commit  ead78241e111abe139c5244eae56e041c401b38c
tree    a191123c689686b7965a11b9dbf48d14352e6152
parent  ab2d05492b97caac5d9032338ac01bc5b1ff36de
insoshi / app / models / blog.rb
100644 17 lines (15 sloc) 0.395 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# == Schema Information
# Schema version: 22
#
# Table name: blogs
#
# id :integer(11) not null, primary key
# person_id :integer(11)
# created_at :datetime
# updated_at :datetime
#
 
class Blog < ActiveRecord::Base
  belongs_to :person
  has_many :posts, :order => "created_at DESC", :dependent => :destroy,
                   :class_name => "BlogPost"
end