#167 I first Assign an approval workflow get some error

This commit is contained in:
Karel Picman 2013-10-21 16:55:37 +02:00
parent 7f5dccc251
commit 1a0b4d3b8b
2 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ class DmsfLock < ActiveRecord::Base
end
def generate_uuid
self.uuid = UUIDTools::UUID.timestamp_create().to_s
self.uuid = UUIDTools::UUID.random_create.to_s
end
def self.delete_expired

View File

@ -60,7 +60,7 @@ class Dmsf144 < ActiveRecord::Migration
do_not_delete.each {|l|
#Find the lock
next unless lock = DmsfFileLock.find(l)
lock.uuid = UUIDTools::UUID.timestamp_create().to_s
lock.uuid = UUIDTools::UUID.random_create.to_s
lock.save!
}