openflighthpc / flight-control

0 stars 0 forks source link

Enh/risk cost to database #58

Closed megan-godfrey closed 2 years ago

megan-godfrey commented 2 years ago

Added a migration to calculate the risk cost when a cost log is created and store in the database.

Also added a data migration for updating existing records to calculate and store the risk cost.

Requires running rails db:migrate:with_data at command line.

Closes #55