class Post < ActiveRecord::Base has_many :comments acts_as_versioned :limit => 10 end