Fix invalid operator of rails version