Descrease rails dependency to 3.x