Dhaval Singhwww.dsdev.in·Sep 6, 2021TIL #1 : How to pluck jsonb fileds in RailsIf you have a jsonb field in your Active record object and you want some nested value you can use pluck Example: Lets say your Users model has a jsonb attribuite metadata which has a nested key location which in turn has city you can get the value of...47 readsPostgreSQLAdd a thoughtful commentNo comments yetBe the first to start the conversation.