Recreated using rail-api