[Rails] Single id column

Dan Kohn
Sun, 23 Jul 2006 02:05:47 -0000

You can use migrations to add an auto-incrementing id column to your
existing tables.

            - dan
--
Dan Kohn <mailto:dan@dankohn.com>
<http://www.dankohn.com/>  <tel:+1-415-233-1000>



On Jul 22, 2006, at 6:55 PM, Elliott Clark wrote:

> It is true except for the habm join tables those do not need them
> since they are never instanciated as AR objects.(at least thats what
> my memory is telling me.)
>
> On 7/22/06, Fredrik Bertilsson <frebe73@gmail.com> wrote:
>> Is it true that Rails needs a single column to uniquely identify a
>> row
>> in table? If yes, doesn''t this limit the database design and
disables
>> the use of Rails for legacy databases?
>>
>> /Fredrik
>>
>> --
>> Posted via http://www.ruby-forum.com/.
>> _______________________________________________
>> Rails mailing list
>> Rails@lists.rubyonrails.org
>> http://lists.rubyonrails.org/mailman/listinfo/rails
>>
>
>
> --
> Elliott Clark
> eclark@cc.gatech.edu
> eclark@nife.us
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails