[Rails] Re: Beginner: what to do after adding an association in a model?

2009-03-12 Thread rroman81
So building on that example, you should add a column person_id to the address table. Rails will infer the foreign key based on rails model names. U can also specify the actual column by passing :foreign_key into belongs_to macro. Roman On Mar 12, 6:22 am, Ar Chron wrote: > The associations

[Rails] Sql Adapter reports out of memory

2009-02-18 Thread rroman81
I've set up freeTDS, unixODBC and got sql_adapter gem for rails 2.2.2. It's on x64 CentOS 5. within the app a call to ActiveRecord object to inspect columns fails like this: ActiveRecord::StatementInvalid: NoMemoryError: failed to allocate memory: SELECT cols.COLUMN_NAME as