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-5.0.4 test/support/load_schema_sqlserver.rb
activerecord-sqlserver-adapter-5.0.3 test/support/load_schema_sqlserver.rb
activerecord-sqlserver-adapter-4.2.17 test/support/load_schema_sqlserver.rb
activerecord-sqlserver-adapter-4.2.16 test/support/load_schema_sqlserver.rb
activerecord-sqlserver-adapter-5.0.1 test/support/load_schema_sqlserver.rb
activerecord-sqlserver-adapter-5.0.0 test/support/load_schema_sqlserver.rb
activerecord-sqlserver-adapter_new-4.2.15 test/support/load_schema_sqlserver.rb
activerecord-sqlserver-adapter-4.2.15 test/support/load_schema_sqlserver.rb
activerecord-sqlserver-adapter-4.2.13 test/support/load_schema_sqlserver.rb
activerecord-sqlserver-adapter-4.2.12 test/support/load_schema_sqlserver.rb
activerecord-sqlserver-adapter-4.2.11 test/support/load_schema_sqlserver.rb
activerecord-sqlserver-adapter-4.2.10 test/support/load_schema_sqlserver.rb
activerecord-sqlserver-adapter-4.2.9 test/support/load_schema_sqlserver.rb
activerecord-sqlserver-adapter-4.2.8 test/support/load_schema_sqlserver.rb
activerecord-sqlserver-adapter-4.2.6 test/support/load_schema_sqlserver.rb
activerecord-sqlserver-adapter-4.2.5 test/support/load_schema_sqlserver.rb
activerecord-sqlserver-adapter-4.2.4 test/support/load_schema_sqlserver.rb
activerecord-sqlserver-adapter-4.2.3 test/support/load_schema_sqlserver.rb
activerecord-sqlserver-adapter-4.2.2 test/support/load_schema_sqlserver.rb
activerecord-sqlserver-adapter-4.2.1 test/support/load_schema_sqlserver.rb