UUIDを作る。
参考:luvtechno - RubyでGUID/UUIDを扱う
uuidtoolsで作成できます。
サンプル:
require 'uuidtools' # UUIDを作成 p UUID.random_create().to_s p UUID.random_create().to_s
出力:
"75d3b6fc-b994-4379-ae34-baa39d5415f4" "0ad144f9-a8bf-417a-9b1f-f146cd123ffe"
参考:luvtechno - RubyでGUID/UUIDを扱う
uuidtoolsで作成できます。
サンプル:
require 'uuidtools' # UUIDを作成 p UUID.random_create().to_s p UUID.random_create().to_s
出力:
"75d3b6fc-b994-4379-ae34-baa39d5415f4" "0ad144f9-a8bf-417a-9b1f-f146cd123ffe"