2018-07-25 05:30:33 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-03-28 09:17:42 -04:00
|
|
|
class ProjectCiCdSetting < ApplicationRecord
|
2018-05-03 08:37:01 -04:00
|
|
|
belongs_to :project, inverse_of: :ci_cd_settings
|
2018-04-12 08:07:44 -04:00
|
|
|
|
|
|
|
# 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
|