mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
7 lines
226 B
Ruby
7 lines
226 B
Ruby
class Gitea::Base < ApplicationRecord
|
|
db_config = Rails.configuration.database_configuration[Rails.env]["gitea_server"]
|
|
raise 'gitea database config missing' if db_config.blank?
|
|
|
|
establish_connection db_config
|
|
end
|