Sep 3, 2008
Generic-user-small defucius tai 3 posts

Topic: Agile Web Development with Rails, 3rd Edition / question about single table inheritance

Since no one has offered any comments, let me add a little more to the question. I’ve gotten a piece of advice in reconsidering what value STI adds in both of these cases, besides elegance in style.

I can’t see the value clearly beyond elegance. Given the flat underlying table of STI, is it more straightforward just to use a flat table, and forget about STI?

Somehow, I feel like there must a good reason for the existance of STI. Maybe it is just not suited for the examples cited here?

insights, please.

 
Aug 31, 2008
Generic-user-small defucius tai 3 posts

Topic: Agile Web Development with Rails, 3rd Edition / question about single table inheritance

In the single table inheritance example, would it possible for the employee to also be a customer? If not, how would this case be handled?

A similar situation would be people, teacher, and student, where a teacher could also be a student. Would it be possible to use STI in this situation? or something else?

thanks.

 
May 9, 2008
Generic-user-small defucius tai 3 posts

Topic: Agile Web Development with Rails, 3rd Edition / Depot app, adding price

hi, I am having the same problems with the ADD command with sqlite3 3.1.3. and the instruction above with the SWIG and to upgrade sqlite3 on macos 10.4 does not work for me.

3 posts