Storing and Searching JSON in Ruby on Rails 7

preview_player
Показать описание
Querying JsonB columns in Postgresql is kinda confusing, right? Let's take a look at how to make it easier to deal with in this Ruby on Rails 7 tutorial.

Source:

Join this channel to help support these videos:

Follow me on social media:

#Deanin #Software #Programming
Рекомендации по теме
Комментарии
Автор

JSONB? More like JSONB-taking forever to get working. Am I right?

Deanin
Автор

I think it would be interesting to smash this concept together with the CSV upload video you did earlier to show off how to upload a CSV that has regular columns and also additional columns that you could smash into a JSONB record for more dynamic database entries.

siegenator
Автор

I saw you using rake db:drop followed by rake db:prepare. I have a common practice of destroying the database and recreate it in order to use a clean set of fixtures to test the application manually.

For this reason I learned I can use rails db:reset to drop and rebuild the database using the db/schema.rb file. Maybe it can be useful for someone else.

ellerium