Tutorials

Postgres transaction pitfalls for rails developers
Rails abstract away of a lot of database stuff away using Active record which is very convenient. But the convince can bite back if we are not careful enough.Here I am going to list some common mistakes rails developers make and how to avoid them....





Learn Ruby on Rails by Creating a Friends List App
Ruby on Rails is a web development framework that makes developing full stack web apps simpler and quicker compared to many other frameworks. Ruby on Rails provides the basic structure needed to create web pages, web services, and databases.We've ...

A Rubyist's Walk Along the C-side (Part 8): Exceptions
In the previous article, you saw TypedData objects, a type unique to the Ruby C API. In this article, we’ll look at how to raise errors and rescue from errors.Raising errors You’ve already seen one way to raise errors in part 4. The Check_Type fun...



Rails 7 adds support for deferrable foreign key constraints in PostgreSQL | Saeloun Blog
In the database, the Foreign Key constraint enforces referential integrity. This ensures the parent record has to be present before creating a child record and these constraints are immediately enforced(checked after each statement). But, this beh...