David Kimura PRO said over 3 years ago on A Rubyist's Apple M1 Review :
How did you install homebrew & postgresql? It also looks like you're using the system Ruby which is ARM based. I'd recommend now a days to use the native arm-based homebrew.