module RuboCop::Rails::SchemaLoader

def db_schema_path

def db_schema_path
  path = Pathname.pwd
  until path.root?
    schema_path = path.join('db/schema.rb')
    return schema_path if schema_path.exist?
    path = path.join('../').cleanpath
  end
  nil
end