Displaying 1 result from an estimated 1 matches for "aymi4o3iyr2oyfabblkses".
2006 May 06
0
Issues using GUID plugin: IDs and acts_as_versioned
...ase
usesguid
has_many :littles
end
Class Little < ActiveRecord::Base
usesguid
belongs_to :big
acts_as_list :scope => big_id
end
It seems like the generated SQL queries wouldn''t put the ID with string
quotations. I get an error like:
Mysql::Error: Unknown column ''ayMi4o3iyr2OYfabBlKsEs'' in ''where clause'':
SELECT * FROM littles WHERE (big_id = ayMi4o3iyr2OYfabBlKsEs) ORDER BY
position DESC LIMIT 1
ISSUE #2) acts_as_versioned method "create_versioned_tables" assumes integer
for the foreign key id of the table to be versioned
Example: (using...