How we can use Like queries for searching on encrypted data? I used default Active Record Encryption
class Propose < ApplicationRecord encrypts :email, :phone_number, :name, deterministic: true scope :search_filter, -> (params) do if params[:keyword].present? where(search_filte...
Vishwani patlan postedHow do I manage business hours for a store?
ibm Iseries AS/400 DB2
Cómo actualizar PostgreSQL 13.12 a 13.14
Buenas estimados, quisiera saber cómo actualizar la versión 13.12 a 13.14, actualmente apliqué sudo yum update postgresql13, si embargo actualizó y ahora me devuelve lo siguiente, pero sigue en la ...
Isaac Rodríguez Varela postedRails 7 and postgres 15
Configure the Rails Application. Create the Application. Add the PostgreSQL username and password. Create the new application databases.
Randy Medina repliedAnyone using Litestack + SQLite in Production
Thanks for that Chris! Have you looked into the Litestack Gem at all? Seems pretty neat!
Rich Smith repliedHow do I have 2 users associated with a model
I have a model that I want 2 users to have an association with. So this model would have a proposer (user) and a challenger (a different user). I am getting a bit tied up in spaghetti around whethe...
dwedigital postedStoring measurements for users in metric and english measurement systems
The math is fast to do, so that would be fine to convert each time. You could also use a virtual generated column to do the calculation at the database level. See this lesson: https://gorails.com/...
Chris Oliver repliedNo value provided for option '--orm' Error
Database connect
Hello and a wonderful day at all. I'm a new RVM, Ruby and Rails user and I have a problem. My problem is: I can't connect my App to a database. My System: - OS: Rocky Linux on a Hypervisor VM - ...
RubySnug postedAnyone have any brilliant solutions for connecting to Snowflake.
What could be the best way to deal with addresses in terms of database structure and perfomance?
So what would you suggest for columns on an address table?
Willard repliedDatabase Disconnect Error
Where do I put a custom validator for a model?
My little experience is that `app/validators` makes it easier to import the custom validator in the model than using `app/models/validators` as with the first one there is no need to user `include ...
Stéphane Paquet replied • SolvedMulti Tenant based database can connect into another database like multi-db connection?
I've been working on one project that has already implemented a multi-tenant database setup using the apartment gem. and now I need to connect this multi-tenant database to my other project. I've c...
vinay sharma postedI 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.
MySQL 8 and Rails 7 JSON fields
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