Sha256: b8c7bdbf89ebfd56fd6630f473f79b25b856116f07ae07cbdb2f2b1cdcac1ebb
Contents?: true
Size: 405 Bytes
Versions: 26
Compression:
Stored size: 405 Bytes
Contents
require 'singleton' module Scrivito module Migrations class MigrationStore include Singleton def backend @backend ||= CmsBackend.new end def versions @versions ||= MultiJson.load(backend.read.presence || '[]') end def add_version(version) versions << version backend.save(MultiJson.dump(versions)) end end end end
Version data entries
26 entries across 26 versions & 1 rubygems