I am running into some strange error when I upgraded my app to rails version 6 and pushed to heroku that is connected to Amazon RDS.

0
Databases
I am getting the following error: ActiveRecord::StatementInvalid (PG::InsufficientPrivilege: ERROR: permission denied for relation users.. It is definitely a role issue but I am not sure what coul...

MySQL 8 and Rails 7 JSON fields

1
Databases
Rails 7 and MySQL 8 support JSON fields. Migrations support them. I have been using a combination of raw MySQL and other techniques to extract data. What's the proper ActiveRecord way of searching...
Joseph replied

Trouble with a lending library query

3
Databases
Let's say you operate a library. You have so many patrons and so many books you need a Rails app and database to keep your sanity. The basic schema looks something like this: ```ruby create_tabl...

Create a filterable location based database with Google Maps API?

1
Databases
I’m not sure exactly how to word the functionality of what I’m trying to build but let to give it a shot here to see if someone has built or seen something similar I’m working on a web app that wi...
ammys09 replied

How to Efficiently Search for 1milion+ Users in Postgresql and Rails?

0
Databases
I have a user model and around 1milion user records in my database and I'm using ILIKE to match the users by name or email. Sometimes it's very slow since I have a lot of records in my DB so I'm lo...
Denis Omerovic posted

Favorite database clients that will also work on M1 Macbook Pro?

0
Databases
I'm mostly interested for MySQL and PostgreSQL. Do you know of some good ones, maybe not too expensive and compatible with the new mac?
Gabriela Jack posted

Jumpstart Database Credentials

0
Databases
What is the username and password for the Postgresql database?
Haig Douglas posted

Improve multilayer nested loops

0
Databases
I have built a drilldown type screen in an application I am working on and the way I set it up initially is super inefficient and causes really slow load times. The over all concept is we are displ...
RJ McCollam posted

How do I pass my wizard form data to my search index page as filters/parameters?

0
Databases
I cannot for the life of me figure this out. I'm using the Algolia search API along with the Algolia gem, but I didn't set it up in the app I'm working on. The Algolia search is attached to my Proj...
Liam posted

LoadError: Unable to autoload constant Validators::LapseValidator

6
Databases
I wrote a custom validator for a model in my app, but when I try to access that model I get ``` LoadError: Unable to autoload constant Validators::LapseValidator, expected /home/lflores/Projects/c...
Solved

Store a hash in a database

2
Databases
I have a calculator that takes yearly pension contributions into a hash. Therefore, everyone has a contribution lined up with a year. I don't want a database of dozens of years as one individuals c...
Solved

How to add a prod database to a local project

0
Databases
I have a rails app. And of course, the development database is different from the prod database but the code is the same. So now I downloaded the prod database and I want to add it to the developme...
Houssein abil posted

Use Redis as a way to update a model along a process

2
Databases
Hi all! I'm currently working on a purchase order process that has several steps before the final checkout, pretty standard, adding products in the basket their quantity and finally asking for the ...
Eduard Garcia replied
Solved

Bundler::GemRequireError and Gem Load Error is: AddDllDirectory failed when switching from Sqlite3 to Postgres on Rails 6

0
Databases
I have a project in rails which worked with SQLITE3. I have to move out to POSTGRES, because Heroku needs to. **Following the docs: https://devcenter.heroku.com/articles/sqlite3#running-rails-on-p...
cratag posted

Database structure advice

1
Databases
Hi all, I need advice on what to do with an existing table on an existing app. Right now the table is used to store details about a property and its closing costs. Normally there are always a h...
Chris Oliver replied
Solved

get data from once working db

1
Databases
hi there, quite a while ago I threw together a modest linguistic rails app demonstrating use of Russian 4-letter words in action based on ruby 2.3.3 which was deployed and worked online OK until th...
Chris Oliver replied

PG::ConnectionBad: FATAL: password authentication failed for user "deploy" capistrano rails

1
Databases
Hi I am working on deploying rails application to digital ocean everything is worked fine. just stuck on that final step: when I am runing `cap production deploy` I am getting > 01 PG::C...
Thuba Mamba replied

Mysql2::Error::ConnectionError: Access denied for user 'root'@'localhost' (using password: NO)

5
Databases
Hello, I have problems with my connection to mysql and rails, when I access mysql through the terminal with the root user I have no problem, but when I do a db: create rails but I get the error tha...
Elvis Serrão replied
Solved

Postgres issues

1
Databases
Hi, So as i began a project earlier in the year, i decided to go full Docker for deployment. That was all good except debugging and stuff proved difficult so this weekend i decided to make the pro...
Tom Dringer replied

Looking for advice on how to setup a relationship.

7
Databases
I'm trying to figure out the best way to setup relationships between models which allows users to publish saved content from multiple models. **ExampIe:** I have a **Post** model which allows use...
Solved

Want to stay up-to-date with Ruby on Rails?

Join 89,509+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.