CyberCraftInc / vacation_system

Cyber Craft Vacation System
0 stars 0 forks source link

Rake task for importing users does not inform about errors during update #89

Closed eleidan closed 8 years ago

eleidan commented 8 years ago

Let's say, we have the following user:

rake users:list_as_json
...
{"id":1,"first_name":"Tony","last_name":"Shark", ... , "employment_date":"2015-01-12"}
...

And we'd like to update user related data:

rake users:import_from_csv
...
UPDATED Tony Stark
...

As a result we expect to see the user's last_name as Stark, not Shark:

rake users:list_as_json
...
{"id":1,"first_name":"Tony","last_name":"Shark", ... , "employment_date":"2015-01-12"}
...

But still get an old value. The reason might be in validation error happening during update.