Depend on activerecord, not rails