umts / stop-project

Rails app for tracking the Summer 2016 installation of new bus stop signs across the PVTA service area.
MIT License
0 stars 1 forks source link

Add Model and Stop App Rewrite #55

Closed mboneil10 closed 6 years ago

mboneil10 commented 6 years ago

Here are the steps involved: 1) Write Field and BusStopField (BSF) Models. 2) Add existing columns for BusStop to Field models in seeds, then reseed. 3) Write rake task. Take all existing columns into BSF. Involves 20 or 30 lines. 4) Rewrite whole site to use new models (not including tests). 5) Run the migrations from step 1 in production. 6) Run the rake task from step 3 in production. 7) Migrate away (remove/drop) now disused columns.

To note: the system tests should behave the same. And since we don't have any unit tests, we don't have to rewrite those! This change will help us with present issues as well as in the future, when there are new fields requested, or need to edit fields.

mboneil10 commented 6 years ago

Will be a better fix for #54 and #52

mboneil10 commented 6 years ago

Current branch for the rewrite is rewrite. What's left of this issue:

@dfaulken, @jforgue, @sherson let me know if I'm forgetting anything.

mboneil10 commented 6 years ago

In any case, I'm working on the controller.

mboneil10 commented 6 years ago

Closing this and making separate issues with the rewrite milestone