JetThoughts has been building software since 2008. Book a call, or write to sales@jetthoughts.com. You'll leave the call with a written one-page scope within 2 working days.

A 30-minute call; pick a time.

Databases often evolve in unpredictable ways. Tables that were initially designed to operate independently might later need to be connected.

The solution doesn't require any changes to the DB scheme (denormalization or creation of views) and can be performed in the scope of a single SQL query.

In the first part, we considered the solution with extracting logic to the separate class and implementing the Facade pattern.

Ordering records by an enum in Rails 7 without hand-written SQL: in_order_of puts the rows in the sequence you name.
JetThoughts has been building software since 2008. Book a call, or write to sales@jetthoughts.com. You'll leave the call with a written one-page scope within 2 working days.

A 30-minute call; pick a time.