Displaying 1 result from an estimated 1 matches for "sys_creation_date".
2006 Jun 12
1
Transaction save?
...id => vcr,
:status => ''NEW'',
:er => ''N'',
:issuedate => Date.today,
:needbydate => Date.today
)
Crmapping.create(
:k_id => found[0].id,
:c_id => vcr,
:sys_creation_date => Date.today
)
end
Since the first record was not created when executing the second I get
error:
Mysql::Error: #23000Cannot add or update a child row: a foreign key
constraint fails...
Thanks
--
Posted via http://www.ruby-forum.com/.