rolled back to earlier version of active record because it was causing issues