mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-07-29 12:00:32 +00:00
18 lines
382 B
Ruby
18 lines
382 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Ci
|
|
class ApplicationRecord < ::ApplicationRecord
|
|
self.abstract_class = true
|
|
|
|
connects_to database: { writing: :ci, reading: :ci } if Gitlab::Database.has_config?(:ci)
|
|
|
|
def self.table_name_prefix
|
|
'ci_'
|
|
end
|
|
|
|
def self.model_name
|
|
@model_name ||= ActiveModel::Name.new(self, nil, name.demodulize)
|
|
end
|
|
end
|
|
end
|