Questions tagged [ksuid]

2 questions
5
votes
1 answer

Rails custom ActiveRecord::Type fails when using `class_name` in has_many :through association

I'm using KSUIDs as a replacement for UUIDs in my Rails app. michaelherold/ksuid-ruby ported KSUIDs to Ruby and implemented them as ::ActiveRecord::Type::String. Everything is working great except one little bug when using has_many :through…
mattes
  • 8,936
  • 5
  • 48
  • 73
1
vote
1 answer

ksuid genration return string in go

I am using below function to generate ksuid in byte format but i need it to return ksuid in string format. I tried returning id.string() value but i am getting below error error: cannot use id.String() (value of type string) as id_return value in…