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-jdbcsqlserver-adapter-52.0.0 test/support/load_schema_sqlserver.rb
activerecord-jdbcsqlserver-adapter-51.1.0 test/support/load_schema_sqlserver.rb
activerecord-jdbcsqlserver-adapter-50.1.0 test/support/load_schema_sqlserver.rb
activerecord-sqlserver-adapter-5.2.1 test/support/load_schema_sqlserver.rb
activerecord-jdbcsqlserver-adapter-51.0.1 test/support/load_schema_sqlserver.rb
activerecord-jdbcsqlserver-adapter-51.0.0 test/support/load_schema_sqlserver.rb
activerecord-jdbcsqlserver-adapter-50.0.0 test/support/load_schema_sqlserver.rb
activerecord-sqlserver-adapter-5.2.0 test/support/load_schema_sqlserver.rb
activerecord-sqlserver-adapter-5.2.0.rc2 test/support/load_schema_sqlserver.rb
activerecord-sqlserver-adapter-5.2.0.rc1 test/support/load_schema_sqlserver.rb
activerecord-sqlserver-adapter-5.1.6 test/support/load_schema_sqlserver.rb
activerecord-sqlserver-adapter-5.0.8 test/support/load_schema_sqlserver.rb
activerecord-sqlserver-adapter-5.1.5 test/support/load_schema_sqlserver.rb
activerecord-sqlserver-adapter-5.1.2 test/support/load_schema_sqlserver.rb
activerecord-sqlserver-adapter-5.1.1 test/support/load_schema_sqlserver.rb
activerecord-sqlserver-adapter-5.1.0 test/support/load_schema_sqlserver.rb
activerecord-sqlserver-adapter-4.2.18 test/support/load_schema_sqlserver.rb
activerecord-sqlserver-adapter-5.0.7 test/support/load_schema_sqlserver.rb
activerecord-sqlserver-adapter-5.0.6 test/support/load_schema_sqlserver.rb
activerecord-sqlserver-adapter-5.0.5 test/support/load_schema_sqlserver.rb