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