mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 19:00:32 -06:00
a65a9a85d5
In order for this to work the Backuper stores a couple of site settings in the new backup_metadata table, because the old setting values might not be available on restore anymore.
17 lines
315 B
Ruby
17 lines
315 B
Ruby
# frozen_string_literal: true
|
|
|
|
class BackupMetadata < ActiveRecord::Base
|
|
def self.value_for(name)
|
|
where(name: name).pluck(:value).first
|
|
end
|
|
end
|
|
|
|
# == Schema Information
|
|
#
|
|
# Table name: backup_metadata
|
|
#
|
|
# id :bigint not null, primary key
|
|
# name :string not null
|
|
# value :string
|
|
#
|