Search the web
Sign In
New User? Sign Up
RubyOnRails · Ruby on Rails
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Single Table Inheritance and MySQL   Message List  
Reply | Forward Message #39 of 107 |
Re: Single Table Inheritance and MySQL

Howdy Gigi!

I found this page from the Rails API which discusses how to create
columns with names containing reserved words in Firebird.

http://www.rubyonrails.org/api/classes/ActiveRecord/ConnectionAdapters/FirebirdA\
dapter.html


I don't know if MySQL 5 offers similar ability.

-Colman


--- In RubyOnRails@yahoogroups.com, "gigi_thom" <gigi_thom@...> wrote:
>
> Hi Everyone,
>
> I've been playing around with RoR, and love it and am implementing a
> project which I want to use the Single Table Inheritance Feature. The
> convention is to use the column name 'type' to indicate the type name,
> however using Firebird or MySQL 5, 'type' is a reserved word and cannot
> be used as a column name.
>
> What is the convention for changing the column name but can still use
> the single inheritance feature?
>
> Would really appreciate it.
>
> Cheers,
> Gigi
>




Wed Dec 20, 2006 5:11 pm

colmannady
Offline Offline
Send Email Send Email

Forward
Message #39 of 107 |
Expand Messages Author Sort by Date

Hi Everyone, I've been playing around with RoR, and love it and am implementing a project which I want to use the Single Table Inheritance Feature. The ...
gigi_thom
Offline Send Email
Dec 20, 2006
1:07 am

Well i appreciate it how you make possible it i am very new programmer to RoR and need your help in uploading the photo using ruby i have to upload photo in...
kalpesh patel
kalpeshpatel...
Offline Send Email
Dec 22, 2006
5:52 am

Howdy Kaals! The only experience I have had with uploading photos is using the "file_column" plugin available here: ...
colmannady
Offline Send Email
Jan 3, 2007
3:52 am

Howdy Gigi! I found this page from the Rails API which discusses how to create columns with names containing reserved words in Firebird. ...
colmannady
Offline Send Email
Dec 22, 2006
5:54 am

Another Rails developer told me that you can override the name using: inheritance_column()- Defines the column name for use with single table inheritance —...
rick_martin_2001
rick_martin_...
Offline Send Email
Dec 22, 2006
5:56 am

Hi Everyone, Thanks for replying. This has made a huge difference to the design of my application and I really appreciate it. Where I have some advice to give,...
Gigi T
gigi_thom
Offline Send Email
Jan 3, 2007
1:43 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help