Added Goal State and cleaned up part of the Goal Model
Cleaned up attributes on the goal and goal_state model objects
Cleaned up the routes file
Added a migration to setup database relations with the new GoalStates Table
Cleaned up some references to goal URLs so they point to goals outside of visits
Added link between clients and goals
Can now properly create new Goals and it will update the first goal state appropriately
Added some helpful functions to set the goal state
Goal States should save once the parent goal is updated
Goals Controller show now properly generates the current visit
Added helper method to have the goal populate its current value and expenditures for a given visit
Deletion of goals now works again. Does not delete its child goal_states currently
Goal State now is properly set on creation
Removed some accidentally committed debug text
Can now properly show a goal again
Can now update goal states alongside goals
Cleaned up how new Goal States are created and updating a goal that has no state for a current visit shoul now get updated correctly
Goal should no longer explode when trying to show a goal with no goal states
Goals are now populated correctly in the visits timeline view
Fixed goal categories link on visits show page to work properly