mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 14:19:49 +08:00
d686318133
Additional changes: * Verbose logging of remaps during restores * Exclude the backup_metadata table from restores
17 lines
324 B
Ruby
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
|
|
#
|