Skip to content

Instantly share code, notes, and snippets.

@amitpatelx
Created October 26, 2018 12:56
Show Gist options
  • Save amitpatelx/bc477f45ecac848f838a2e519b1c2655 to your computer and use it in GitHub Desktop.
Save amitpatelx/bc477f45ecac848f838a2e519b1c2655 to your computer and use it in GitHub Desktop.
Fix product_info jsonb column values
# Need to run following line in production/stagin rails console after merging https://github.com/gs2589/MarketRx/pull/238
QuarantineCode.all.each do |q|
q.update!(product_info: JSON(q.product_info))
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment