search for: find_or_create_by_name_and_date

Displaying 1 result from an estimated 1 matches for "find_or_create_by_name_and_date".

2005 Dec 27
1
Legacy Data without Primary Keys
...are unique, though. What''s the best practice & how''s it done pls? * Make a string id field and concatenate the two fields (or whatever I want for an ID) in it * Set the two fields to be primary keys, Rails picks it up, and don''t use find() * Manually check with find_or_create_by_name_and_date(params) for each record * Something else... Thx!