Module: MemoryTestFix::SchemaFileLoader Private

Defined in:
lib/memory_test_fix/schema_file_loader.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Load Rails schema file into in-memory database.

Class Method Summary collapse

Class Method Details

.load_schemaObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Load the Rails schema file.



6
7
8
9
# File 'lib/memory_test_fix/schema_file_loader.rb', line 6

def self.load_schema
  # TODO: Use tooling provided by rails once support for Rails 3 is dropped.
  load "#{Rails.root}/db/schema.rb"
end