Skip to main content
Fallback
How do I convert a SQL query to rails?
Databases • Asked by Emrah Yıldırım
Hi, I'm new to ROR. The query I created below is functioning properly. I'm trying to prepare an interrogation. But I didn't succeed. The query is as follows; @rad_check.tenant_id = SELECT gro...
1
post

Fallback
Loosing my attached_images when cap deploy after switching my path so that my posts stay
Databases • Asked by Sebastian
Okay one last question :) To avoid that cap production deploy is killing my Posts from the database i added production: adapter: sqlite3 database: /home/deploy/apps/Blogapp/releases/sha...
2
posts

Fallback
How do I write the correct association?
Databases • Asked by Arzee
If I wanted to have a "user_type" column in my "users" table that references to another table called "user_type", how do I write the correct association in rails? For example if my user_type is 1 a...
1
post

Fallback
PG::InsufficientPrivilege: ERROR: permission denied to create extension "pgcrypto" HINT: Must be superuser to create this extension. : CREATE EXTENSION IF NOT EXISTS "pgcrypto"
Databases • Asked by Juan S. Caro
Hi everyone, I have been deploying following the guides of this site. However, I had introduced the use of UUID and so I have set the use of extensions for PostgreSQL. Now, when I deploy, I get the...
1
post

Fallback
What database should I use?
Databases • Asked by Michael Victor
I would like to create a database to store how often access tokens in my system are being used.I was thinking of a data model like so -Access Tokenfrom (basically I will store this hourly, so this ...
2
posts

Fallback
Database Disconnect Error
Databases • Asked by russell depp
HI,Most of the time I leave my DB management tool, like DBeaver, open on my computer. Sometimes after a long period of time I get an error because the connection has been dropped or reset. Specific...
1
post

Fallback
Connect Rails Application to already existing MySql Database
Databases • Asked by Rishabh Shukla
Hi there, I am new to Rails and really enjoying it. I am converting my php application to a ROR application. The app is using a MySql DB, so I want to connect the ROR application with that already ...
2
posts

Fallback
How to structure DB in such a way that we can create attributes dynamically in rails
Databases • Asked by Anand Duddella
Hi I am trying to create for example a contact model but currently i only know of for example first name, last name and email but would want to give the user a choice of entering more custom fields...
1
post

Fallback
ibm Iseries AS/400 DB2
Databases • Asked by Manuel Martinez
I'm trying to connect using some of the gems:sequel, dbi, ibm_db, jdbc-as400-adapterWithout success, does anyone have the same problem?
5
posts

Fallback
Should Categories be it's own resource or model attribute?
Databases • Asked by Ariff Munshi
Hey guys, I have a question on database design. Say I have a Post model that has/belongs to a category (out of about 20 categories or so). I am thinking of two options that have their own merits.1....
3
posts

Subscribe to the newsletter

Join 18,000+ developers who get early access to new screencasts, articles, guides, updates, and more.

By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

More of a social being? We're also on Twitter and YouTube.