support for active record 4