Add rails >= 3.1 as dependency