0
votes
1answer
13 views

Storing array in database to prevent database hit in Rails

I am using the acts_as_taggable gem, which has a method tag_list, which produces an array of tags, but requires an SQL call. I have been research optimization and am curious if it would be good ...
0
votes
1answer
12 views

ActiveRecord Association for Grades App

A bit hard to explain with a title. I am making a test grades app with Ruby on Rails, and can't figure out the best ActiveRecord Association setup. Ideally: there are many Users, and there are ...
1
vote
1answer
30 views

Is there a normal range of database calls in rails app?

I have a Ruby on Rails app and it displays a list of programs. Each of those programs has a like/unlike button, so there is a database query for each program on whether or not a User Likes the program ...
0
votes
2answers
23 views

Database schema for multiple choice Trivia game

I'm trying to determine the most efficient db schema for a multiple choice trivia game. I have the questions and answers in a spreadsheet with the columns, 'question_id', 'level', 'question', ...
-1
votes
2answers
21 views

synchronization database rails application [closed]

In the case of process automation synchronization database, I want to design and develop an application migration management databases of different engines. In a first time, I want to focus on three ...
0
votes
1answer
29 views

Proper way to add forgeign keys in db?

So - I've been learning rails for the last 4 months and would like to think that I have a pretty good overview of it. Albeit, there are a few gray areas that I would like to make clearer. One being ...
0
votes
1answer
22 views

One to Many Relationship: List of many not showing up

I have a simple one to many relationship mapping users to posts. Here is the relevant part of the schema: create_table "users", :force => true do |t| t.string "username" t.string ...
-2
votes
0answers
27 views

Database extern in ruby on rails [closed]

I want to know how I can generate a class from a database extern which is not in my rails Application. I want really your help. Thanks you
0
votes
2answers
45 views

A better database model for holding postage prices

I wanted to create a Postage_costs table to hold postages costs, each postage_cost has a name, e.g Large Item, which has different costs(standard price and express postage price) depending on ...
0
votes
1answer
23 views

Postgres Bulk Data Import and Populate Associated Data

I have a Postgres database that gets updated from various external sources several times a day, and each record has fields like company_id and user_id that need to get looked up from an existing table ...
2
votes
2answers
47 views

Rails: Every user has a own database user

My customer has a existing database where every user has it's own database user and he wants that every user uses his own database user to log into the rails application. For my models of this ...
0
votes
3answers
35 views

Rails db:migrate cannot mass assign protected attributes

I am learning Rails with the book Agile Web Development with Rails 4th edition. Given the code for the migration below: class CombineItemsInCart < ActiveRecord::Migration def up ...
0
votes
0answers
11 views

Is it possible to have a schema file when using multiple databases in a Rails application?

For various reasons, I have an app that must use two databases in production (corporate data coming from an AWS read-only (redundancy) database, and another normal/writable database for certain lead ...
0
votes
0answers
16 views

Rails to Labview networked connection

I have a Rails server that needs to send a little bit of a data to a LabVIEW system when a record is saved. That shouldn't be too hard in Rails using an after_save hook and quite possibly a redis ...
0
votes
2answers
31 views

How do I deploy my rails app to Heroku using an existing SQL database?

I have an existing MySQL database and would like to build a Rails app on top of it. How do I deploy my app to Heroku but still use my existing database instead of the default PostgreSQL database? ...

1 2 3 4 5 107
15 30 50 per page