17 lines
378 B
Ruby
17 lines
378 B
Ruby
class ProjectCiCdSetting < ActiveRecord::Base
|
|
belongs_to :project
|
|
|
|
# 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
|