Upgrade rails for SECURITY