class Post < ActiveRecord::Base end class SubPost < Post end