You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: setting.rb
    path of file: ./repos/onebody/app/models
    
    the code of the file until where you have to start completion: class Setting < ApplicationRecord
  GLOBAL_SETTINGS = [
    'Contact.Bug Notification Email', 'Features.Multisite', 'Features.SSL'
  ].freeze

  SETTINGS_FILE = Rails.root.join('config/settings.yml'
    
    def update_all
      settings = load_settings_hash
      # per site settings
      Site.where(active: true).each do |site|
        Rails.logger.info("Reloading settings for site #{site.id}...")
        update_site_from_hash(site, settings)
      end
      # globals
      Rails.logger.info('Reloading global settings...')
      global_settings_in_db = Setting.where(global: true).to_a
      each_setting_from_hash(settings, true) do |section_name, setting_name, setting|
        unless global_settings_in_db.detect { |s| s.section == section_name && s.name == setting_name }
          global_settings_in_db << Setting.create!(setting.merge(section: section_name, name: setting_name))
        end
      end