To set the funded_at field in the project_milestones table when a milestone is created or updated, you need to update the relevant parts of your accept method and the createMilestoneProject method if it doesn't already handle this field.
Step 1: Update the createMilestoneProject Method
Ensure that the createMilestoneProject method sets the funded_at field when creating a new milestone.
Here is a possible implementation for the createMilestoneProject method: