Skip to main content
thoughtbot thoughtbot
  • Live on Twitch!

    thoughtbot is livestreaming

    Work alongside the thoughtbot team as we collaborate with each other and our clients, live. Ask us anything, we're live right now!

  • Case Studies
  • Blog
  • Let’s Talk
Live on Twitch!

thoughtbot is livestreaming

Work alongside the thoughtbot team as we collaborate with each other and our clients, live. Ask us anything, we're live right now!

Let’s get started!
View all Services
Development
  • Ruby on Rails
  • Hotwire
  • AI and Machine Learning
  • Maintenance
  • Mobile
Design
  • Discovery Sprints
  • UX, UI, and Product Design
  • Design Systems
Product
  • MVP
  • Product Management
  • Accessibility
Team and Processes
  • Team Augmentation
  • Fractional Leadership
View all Services
View all Resources
Development
  • Tech Leadership Resources
  • Open Source
  • Books
  • The Bike Shed Podcast
  • Live Streaming on YouTube
  • Conference Talks
The business of great software
  • Playbook
  • Purpose Built
  • Giant Robots Smashing Into Other Giant Robots Podcast
  • Design Sprint Guide
  • Live Streaming on LinkedIn
View all Resources

Databases Articles

Written by thoughtbot, your expert partner for design and development.

    • All Topics
    • Design
    • Development
    • Product
    • More topics
  1. Enum validations and database constraints in Rails 7.1

    How to add model validation for a column using a PostgreSQL enum type in Rails 7.1.

    Sally Hall
    April 16, 2024
    • Web
    • Rails
    • Active Record
    • Databases
    • Validation
    • Enum
  2. Monitoring PostgreSQL on AWS RDS for slow queries

    Some helpful tips to fixing slow database queries before they become a problem.

    Olamide Olaoye
    February 29, 2024
    • AWS
    • PostgreSQL
    • Databases
    • Debugging
    • DevOps
  3. This Week in #dev (Feb 9, 2024)

    Speed up your tests, a nice SQL trick, and a Jest global that you might not know about.

    thoughtbot
    February 19, 2024
    • This Week In Dev
    • Databases
    • Rails
    • Testing
    • Jest
    • Performance
  4. This Week in #dev (Jan 26, 2024)

    Inserting 100,000,000 rows into the database, how Turbo can break OAuth forms, and more!

    thoughtbot
    February 5, 2024
    • This Week In Dev
    • Rails
    • Databases
    • Hotwire
  5. Joining Postgres tables using arrays of IDs

    Some tips on how to do many-to-many SQL queries without a normal join table.

    Dave Iverson
    December 5, 2023
    • Databases
    • PostgreSQL
    • SQL
    • Prisma
    • Airtable
  6. 3 ways to model an associated collection in Rails

    A look at the Postgres array type and good old join tables, each with their advantages and disadvantages.

    Dimiter Petrov
    November 23, 2023
    • Rails
    • Databases
    • SQL
    • PostgreSQL
  7. This Week in #dev (Jun 16, 2023)

    Highlights of what happened in our #dev channel on Slack this week.

    thoughtbot
    June 23, 2023
    • This Week In Dev
    • TIL
    • PostgreSQL
    • Databases
    • Rails
  8. This week in #dev (Mar 24, 2023)

    It’s all about databases in this edition!

    thoughtbot
    April 7, 2023
    • This Week In Dev
    • Active Record
    • PostgreSQL
    • Databases
  9. Query by Duration in Active Record

    How do you even save a “duration”, let alone query for records by that value? It’s actually easier than you think.

    Steve Polito
    June 7, 2022
    • Rails
    • Databases
    • PostgreSQL
    • Active Record
    • SQL
  10. Testing Techniques: The I/O Table

    Leverage the power of the I/O table mindset to make your tests as maintainable and readable as possible.

    Thiago Araújo Silva
    April 21, 2022
    • Testing
    • Ruby
    • Databases
    • PostgreSQL
  11. Sign up to receive a weekly recap from thoughtbot

    Looking for even more ways to stay connected?
    RSS feed icon Check out our feeds
1 2 Next › Last »

Footer

thoughtbot
  • Services
  • Case Studies
  • Resources
  • Let's Talk
  • Our Company
  • Careers
  • Purpose
  • Blog
  • Sponsor
  • Mastodon
  • Bluesky
  • GitHub
  • YouTube
  • Twitch
  • Feeds
© 2025 thoughtbot, inc.

The design of a robot and thoughtbot are registered trademarks of thoughtbot, inc.

  • US: +1 (877) 9-ROBOTS
  • UK: +44 (0)20 3807 0560
  • Beware of fraudulent thoughtbot job listings Learn more
  • Code of Conduct
  • Accessibility Statement
  • Privacy Policy