2019-07-09 07:57:31 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class BackupMetadata < ActiveRecord::Base
|
|
|
|
def self.value_for(name)
|
2019-08-12 11:14:51 -04:00
|
|
|
where(name: name).pluck(:value).first.presence
|
2019-07-09 07:57:31 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# == Schema Information
|
|
|
|
#
|
|
|
|
# Table name: backup_metadata
|
|
|
|
#
|
|
|
|
# id :bigint not null, primary key
|
|
|
|
# name :string not null
|
|
|
|
# value :string
|
|
|
|
#
|