rails factor change