removed activerecord if not defined