Skip to content

Commit

Permalink
Generate keys instead of using Serial
Browse files Browse the repository at this point in the history
  • Loading branch information
jcrosby committed Feb 16, 2009
1 parent 245f9df commit 230f685
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cloudkit/store/document.rb
Expand Up @@ -2,7 +2,7 @@ module CloudKit
class Document
include DataMapper::Resource

property :id, Serial
property :id, String, :key => true, :default => Proc.new { "#{Time.now.utc.to_i}:#{UUID.generate}" }
property :etag, String
property :last_modified, String
property :uri, String, :length => 255, :unique => true
Expand Down

0 comments on commit 230f685

Please sign in to comment.