specify upper bound on rails version since this version is not compatible with > AR4.