Update index generation to Rails 4.2