On Jul 19, 2013, at 7:15 AM, Robert Walker <lists@ruby-forum.com> wrote:
> Colin Law wrote in post #1116001:
>> On 19 July 2013 14:59, David <piegza@workhub.com> wrote:
>>> Yes exactly. It's specific to the word 'record'. It works when I change it
>>> to :foo or :b (or anything else).
>>>
>>> Are there any reserved words for association names?
>>
>> It would appear that the answer to that question is yes.
>
> Although that might have been unintentional. I don't know of any
> "official" reserved word list for association names.
>
'record' is often a reserved word in the underlying dbms, but I was pretty sure Rails (AR) protected this such as surrounding field names and other identifiers with back ticks. Not sure if other dbmses do this or not….
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/02AB5116-BF44-480A-8026-9EBD29A1ED58%40gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment