renames the primary key constraint on renaming table

Related to issue https://github.com/rails/rails/issues/12856