Rails JSONB columns not showing

Hi @anon39848301 - thank you for getting back to me.

I have just created a smart field for this and thought it might be useful for anyone having a similar issue in the future to know that if you create a field of the same name as the key in the jsonb column. you don’t need to define the value inside.

Our field is ‘ce_new’ inside ‘options’ which is a jsonb column but our storext gem allows us to access this by calling

model_instance.ce_new 

So our field in the collection can be written as

field :ce_new, type: 'Boolean'

without the block