activerecord 3.0 compatability