{"comment":{"url":"https://api.github.com/repos/crossroads/api.goodcity/comments/16860854","html_url":"https://github.com/crossroads/api.goodcity/commit/96b40eb40db812e12a325137cb933bb1510be451#commitcomment-16860854","id":16860854,"user":{"login":"swatijadhav","id":1950768,"avatar_url":"https://avatars.githubusercontent.com/u/1950768?v=3","gravatar_id":"","url":"https://api.github.com/users/swatijadhav","html_url":"https://github.com/swatijadhav","followers_url":"https://api.github.com/users/swatijadhav/followers","following_url":"https://api.github.com/users/swatijadhav/following{/other_user}","gists_url":"https://api.github.com/users/swatijadhav/gists{/gist_id}","starred_url":"https://api.github.com/users/swatijadhav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swatijadhav/subscriptions","organizations_url":"https://api.github.com/users/swatijadhav/orgs","repos_url":"https://api.github.com/users/swatijadhav/repos","events_url":"https://api.github.com/users/swatijadhav/events{/privacy}","received_events_url":"https://api.github.com/users/swatijadhav/received_events","type":"User","site_admin":false},"position":7,"line":66,"path":"app/models/version.rb","commit_id":"96b40eb40db812e12a325137cb933bb1510be451","created_at":"2016-03-28T08:01:54Z","updated_at":"2016-03-28T08:01:54Z","body":"Yes @steveyken \r\nWe can make use of `COALESCE`, Can you please verify this commit https://github.com/crossroads/api.goodcity/commit/00caca2945c161546c50274ee615eb9a1886a839#diff-3c35bc805bbb122cee7af2e3884a4d66R66 ?\r\nwe need to use `map` here, as we want to retrieve the offer_ids and the query gives active-record relation.\r\n\r\nPlease let me know you thoughts and any better suggestion. Thanks :)"}}