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
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
2 matches
Mail list logo