Created
October 26, 2018 12:56
-
-
Save amitpatelx/bc477f45ecac848f838a2e519b1c2655 to your computer and use it in GitHub Desktop.
Fix product_info jsonb column values
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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