Add_primary_key in AR script

Hi,

We use “add_primary_key” method in the active record script to create
primary key in a table. But this method does not allow us to create our
own primary key constraint name.

Is there a way where we can give our own constraint name ?

please help !! Appreciate your response.

Thanks,
John