Input string is longer than NAMEDATALEN 1 (63) on rails4

Developer from somewhere

This error occurs because when you rename a table, the indexes are also renamed, and most likely one of your indexes auto-generated name is too long.