Sha256: 2f89d5b7478c7f766645a31fbd41f174343fabab11ceb2e46ffc849733b9857f

Contents?: true

Size: 527 Bytes

Versions: 42

Compression:

Stored size: 527 Bytes

Contents

module ARTest
  module SQLServer

    extend self

    def schema_root
      File.join ARTest::SQLServer.test_root_sqlserver, 'schema'
    end

    def schema_file
      File.join schema_root, 'sqlserver_specific_schema.rb'
    end

    def schema_datatypes_2012_file
      File.join schema_root, 'datatypes', '2012.sql'
    end

    def load_schema
      original_stdout = $stdout
      $stdout = StringIO.new
      load schema_file
    ensure
      $stdout = original_stdout
    end

  end
end

ARTest::SQLServer.load_schema

Version data entries

42 entries across 42 versions & 3 rubygems

Version Path
activerecord-sqlserver-adapter-4.2.0 test/support/load_schema_sqlserver.rb
activerecord-sqlserver-adapter-4.2.0.pre test/support/load_schema_sqlserver.rb