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: cascading_namespace_settings.rb
    path of file: ./repos/gitlabhq/lib/gitlab/database/migration_helpers
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Gitlab
  module Database
    module MigrationHelpers
      module CascadingNamespaceSettings
   
    
        def add_cascading_namespace_setting(setting_name, type, **options)
          lock_column_name = "lock_#{setting_name}".to_sym

          check_cascading_namespace_setting_consistency(setting_name, lock_column_name)

          namespace_options = options.merge(null: true, default: nil)

          add_column(:namespace_settings, setting_name, type, **namespace_options)
          add_column(:namespace_settings, lock_column_name, :boolean, default: false, null: false)

          add_column(:application_settings, setting_name, type, **options)
          add_column(:application_settings, lock_column_name, :boolean, default: false, null: false)
        end