2020-09-18 15:26:14 +08:00
|
|
|
class Ci::RemoteBase < Ci::Database
|
2020-08-20 18:37:53 +08:00
|
|
|
self.abstract_class = true
|
|
|
|
|
|
2020-08-26 16:24:51 +08:00
|
|
|
def generate_code
|
|
|
|
|
[*'a'..'z',*'0'..'9',*'A'..'Z'].sample(32).join
|
|
|
|
|
end
|
2020-09-18 15:26:14 +08:00
|
|
|
|
2020-08-20 18:37:53 +08:00
|
|
|
end
|