Closed mathildathompson closed 7 years ago
@krissy please can you review when you have a chance :-)
Will require an update to https://github.com/empowerhack/DrawMyLife-Service/blob/master/spec/models/drawing_spec.rb#L28 to fix that broken test
Me and @krissy also spoke about whether the backfill rake task should be a database migration rather than a rake task - this would ensure that it is run when the code is updated on each environment, and also ensure that it is only ever run once on each environment
@krissy @mathildathompson Can one or both of you take a peek and give a 👍 or 👎 on my commit made today? https://github.com/empowerhack/DrawMyLife-Service/pull/134/commits/f248c515bc75a2e3fe41d45fe52a42a1b8b1244e
Addresses issue: #129
What this does
backfill_drawing_mood_rating_field
to backfill existing mood ratings to be between 1-5;Screenshots
Deploy Instructions
Rake tasks can be run by running:
bundle exec rake backfill:mood_rating_field