2
votes
0answers
319 views

Some database design ideas for Activity Stream/Log per page

I'm building an activity log of users actions. But the main objective is to get all activities not per user, but per page (scope) its inside. I will explain more after. The main thing I'm concern ...
1
vote
0answers
67 views

How to design bill table with dynamic bill details

I have different module such as painting, chasis_repair, over_oiling sections Each module have seperate bill table for example painting_bills, chasis_repair_bills, over_oiling_bills Now I have to ...
1
vote
0answers
32 views

What should happen when I comment on a Newsfeed post status

A newsfeed has a list of some activities that happens in an app. A newsfeed from facebook, for example, combines Group name changes [1] Status about people going to an event [2] Update status [3] ...
1
vote
0answers
119 views

Database design in MySQL for Rails

I'm fairly new in setting up databases. I've started building an application and after searching Google and stackoverflow I didn't find a answer that fit my needs sufficiently. Currently I have a ...
1
vote
0answers
181 views

Object-level authorization database structure in Rails

I'm writing a rails application that has a need for very fine-grained authorization at the object level. Other systems use plugins such as acl9 or declarative_authorization however I want to implement ...
0
votes
0answers
19 views

Seeking cogent explanation of Ruby nested_set gem

A couple of years ago I had occasion to work a bit with the Ruby "nested_set" gem. With some helpful explanation from the chief technologist where I was at, I was able to appreciate how it work, with ...
0
votes
0answers
22 views

How to build a generic unique key validation framework that can be used by various services where services define the rule of validation

Imagine three clients C1, C2 and C3. C1 will send request with multiple attributes/values and also define a uniqueness over some of it's attributes. Imagine for C1, attributes are a,b,c (strings) ...
0
votes
0answers
27 views

Best Way to Refactor Rails Models and Tables For Different Types of Questions

There is a Question model in my application for all types of questions. It has various fields, such as question_text. Different types of questions have different kinds of answers (such as text_answer ...
0
votes
0answers
29 views

Seeding rails databases in a service oriented environment

Bit of a thought exercise regarding seeding databases of rails apps across several services. Setup For example, consider a super simplified example consisting of 4 services (rails apps) which ...
0
votes
0answers
44 views

Create rails migration files from admin web interface

I'm looking at the best way to manage a dynamic models in rails from a web interface; for example lets say i have a product model and from the admin web interface I want to be able to add a new ...
0
votes
0answers
32 views

How do I structure my app given that the data will be centered around 'days and weeks'?

A user will need to be able to enter data, every day of the week, for 4 weeks. The interface will have: Monday - Tuesday - Wednesday - Thursday - Friday - Where they should be entering some data ...
0
votes
0answers
42 views

Why the “database-first” isn't the ideal approach in rails?

In some courses, the mentors begin the app development right in the entities modeling, definition of the attributes, your types and rules(Null or not null, size, etc.), relations, associations and so ...
0
votes
0answers
26 views

Rails Specialized Model Instances

First - alternate suggestions are welcome as the design is flexible. Say we have a Badges database (think gamification). There are certain Badge instances that are expected to exist in the database ...
0
votes
0answers
42 views

How can I architect my Ruby on Rails/MongoDB app to have some values be inherited and others to be customized?

I have a Subscription object with a shipping_address field and has_many Shipments. The Shipment object belongs_to Subscription and also has a shipping_address field. The Shipment object stores both ...
0
votes
0answers
24 views

Can someone help me with complicated associations ?

I need help in building associations architecture, because I'm lost a little bit. So, I want to make Gym Statistics Application, where I will be recording what exercise I made with what weight. I ...

1 2 3 4
15 30 50 per page