class DiscussionBoard < ActiveRecord::Base
  attr_accessible :description, :name

  validates :name,        :presence => { :message => "for discussion board can't be blank" }
  validates :description, :presence => { :message => "for discussion board can't be blank" }

  belongs_to :club

  has_many :topics, :dependent => :destroy

  def user
    club.user
  end

  def assign_defaults
    self.name        = Settings.blogs[:default_name]
    self.description = Settings.blogs[:default_description]
  end
end

class DiscussionBoard < ActiveRecord::Base
  attr_accessible :description, :name

  validates :name,        :presence => { :message => "for discussion board can't be blank" }
  validates :description, :presence => { :message => "for discussion board can't be blank" }

  belongs_to :club

  has_many :topics, :dependent => :destroy
  has_many :posts,  :through   => :topics

  def user
    club.user
  end

  def assign_defaults
    self.name        = Settings.blogs[:default_name]
    self.description = Settings.blogs[:default_description]
  end
end

Add posts Through Topics for DiscussionBoard
Add posts Through Topics for DiscussionBoard

Update the DiscussionBoard model to include a has_many Posts association
through Topics.
