discourse/app/models/backup_metadata.rb
Gerhard Schlager d686318133 FIX: Prevent failed remaps during restores
Additional changes:
* Verbose logging of remaps during restores
* Exclude the backup_metadata table from restores
2019-08-12 17:15:01 +02:00

17 lines
324 B
Ruby

# frozen_string_literal: true
class BackupMetadata < ActiveRecord::Base
def self.value_for(name)
where(name: name).pluck(:value).first.presence
end
end
# == Schema Information
#
# Table name: backup_metadata
#
# id :bigint not null, primary key
# name :string not null
# value :string
#