2018-11-18 11:00:15 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-10-15 14:42:47 +05:30
|
|
|
class ProjectCiCdSetting < ActiveRecord::Base
|
|
|
|
belongs_to :project, inverse_of: :ci_cd_settings
|
|
|
|
|
|
|
|
# The version of the schema that first introduced this model/table.
|
|
|
|
MINIMUM_SCHEMA_VERSION = 20180403035759
|
|
|
|
|
|
|
|
def self.available?
|
|
|
|
@available ||=
|
|
|
|
ActiveRecord::Migrator.current_version >= MINIMUM_SCHEMA_VERSION
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.reset_column_information
|
|
|
|
@available = nil
|
|
|
|
super
|
|
|
|
end
|
|
|
|
end
|