no longer depend on Rails (only ActiveRecord)