Fix supported Rails version: 3.1 onwards