RE: Weird ActiveRecord Foreign Key Problem

I ran into a weird problem with an ActivRecord. I have a table named
c:/programme/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.2/l
`instantiate_without_callbacks’
c:/programme/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.2/l
ib/active_record/callbacks.rb:215:in
c:/programme/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.2/l
the column is “type INTEGER UNSIGNED NOT NULL”. Is there
anyone who have
an idea what I might making wrong here?

Thanks in advance and best regards
Torsten

If I had to guess, I’d say that it’s a problem with the word “type”,
which is a keyword in Ruby.

I’m not sure what the workaround is.

Regards,

Dan

This communication is the property of Qwest and may contain confidential
or
privileged information. Unauthorized use of this communication is
strictly
prohibited and may be unlawful. If you have received this communication
in error, please immediately notify the sender by reply e-mail and
destroy
all copies of the communication and any attachments.

Berger, Daniel wrote:

If I had to guess, I’d say that it’s a problem with the word “type”,
which is a keyword in Ruby.

I have an othere table with a column name “type” an there it works. I
changed it to “class” and it was still working. Then I changed the
column “type” from the table where it wasn’t workin to “building_type”.
Now it’s working but I realy don’t like if I don’t know why it is not
work or why it was not working, maybe there is still an uncovered bug.

Thanks and best regards
Torsten