Save my table historic with all the authorizations ids checked

4 views
Skip to first unread message

Elton Santos

unread,
Apr 26, 2016, 9:12:45 AM4/26/16
to Ruby on Rails: Talk
I have a problem... I need save my table historic with all the authorizations ids checked, update the column authorization_origin_id and set the column refinancing_id with the refinancing id created. Example: I checked authorizations ids 2 and 3, so I create historic with two lines with authorization_origin_id 2 and 3 and the refinancing id will be 1. My code:


Actually my table historic is wrong, authorization_origin_id take, just the last (just one ever =/) value checked and refinancing_id is null
Reply all
Reply to author
Forward
0 new messages