Set appropriate version for rails dependency