I have already existing foreign key in database created this way:
class CreateUser < ActiveRecord::Migration
def change
create_table do ... end
add_foreign_key :users, :admins, column: :admin_id
end
end
but forgot to add on_delete: :nullify
. Migration is already pushed & used on production. I want to add new migration which will add cascale deleting for this PK constraint. How to achieve that?