You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We might actually never want to delete a garden or sensors. If we have sensor readings and we delete the sensor/garden that it references, the reading becomes meaningless (the reading will have an id that points nowhere). This could cause some of our future queries to fail unexpectedly if we are trying to link a reading back to a garden for example.
As part of the delete route for a garden, go back in and delete every sensor that has that deleted id in it's garden_id field.
The text was updated successfully, but these errors were encountered: