mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-07 13:41:42 +08:00
11 lines
250 B
Ruby
11 lines
250 B
Ruby
class Ci::RemoteBase < ApplicationRecord
|
|
self.abstract_class = true
|
|
|
|
establish_connection Rails.configuration.database_configuration[Rails.env]["ci_server_db"]
|
|
|
|
def generate_code
|
|
[*'a'..'z',*'0'..'9',*'A'..'Z'].sample(32).join
|
|
end
|
|
|
|
end
|