class Post < ActiveRecord::Base has_many :comments acts_as_versioned :limit => 10 POST_STATUS = ['published','draft'] end