Master-detail relationship options
When you create a master-detail field on an object, you can choose the Allow reparenting option.
Allow reparenting option
By default, records in master-detail relationships cannot be reparented. However, you can allow child records in a master-detail relationship to be reparented to a different parent by selecting Allow reparenting option in the master-detail relationship definition.