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
When the task runs with the --db flag, it will update a new summary table in the database instead of outputting JSON. The summary table will be created with a Rail migration and accessed with a new model class. We will also implement a controller and route to expose the data (i.e. rails generate scaffold).
The text was updated successfully, but these errors were encountered:
We need to create a Rake task in the lib/tasks/ directory that reads the information in the database and generates a summary or roll-up of the data.
The file should be call
lib/tasks/report.rake
.The task should be run like this:
Future work
When the task runs with the
--db
flag, it will update a newsummary
table in the database instead of outputting JSON. Thesummary
table will be created with a Rail migration and accessed with a new model class. We will also implement a controller and route to expose the data (i.e.rails generate scaffold
).The text was updated successfully, but these errors were encountered: