define ActiveRecord constants with DSL.and more!