Displaying 1 result from an estimated 1 matches for "property_variable_stacks".
Did you mean:
property_variable_stack
2005 Oct 25
1
initialising an instance variable on ActiveRecord creation
Hallo, I have a table like this:
create table properties(
id bigint unsigned not null auto_increment,
property_variable_stack_id bigint unsigned not null,
primary key(id),
foreign key (property_variable_stack_id) references
property_variable_stacks (id))
type=InnoDB;
Here you can see a reference to a table property_variable_stacks.
>From outside the Property class I can set up a Property with a
PropertyVariableStack like this:
p=Property.new
p.property_variable_stack=PropertyVariableStack.new
p.save!
This works just fine.
However, I have...