class SurveyGroup < ActiveRecord::Base has_many :survey_items, :dependent => :destroy belongs_to :survey_step end