Sha256: 769cf4906b33e90ca7562f50ed2ce8efc2384b46fcebc1a260ceb0afac9fed98

Contents?: true

Size: 556 Bytes

Versions: 38

Compression:

Stored size: 556 Bytes

Contents

# frozen_string_literal: true

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

38 entries across 38 versions & 1 rubygems

Version Path
activerecord-sqlserver-adapter-8.0.0 test/support/load_schema_sqlserver.rb
activerecord-sqlserver-adapter-7.2.2 test/support/load_schema_sqlserver.rb
activerecord-sqlserver-adapter-7.1.9 test/support/load_schema_sqlserver.rb
activerecord-sqlserver-adapter-7.1.8 test/support/load_schema_sqlserver.rb
activerecord-sqlserver-adapter-7.2.1 test/support/load_schema_sqlserver.rb
activerecord-sqlserver-adapter-7.2.0 test/support/load_schema_sqlserver.rb
activerecord-sqlserver-adapter-7.1.7 test/support/load_schema_sqlserver.rb
activerecord-sqlserver-adapter-7.1.6 test/support/load_schema_sqlserver.rb
activerecord-sqlserver-adapter-7.1.5 test/support/load_schema_sqlserver.rb
activerecord-sqlserver-adapter-7.1.4 test/support/load_schema_sqlserver.rb
activerecord-sqlserver-adapter-7.0.7 test/support/load_schema_sqlserver.rb
activerecord-sqlserver-adapter-7.1.3 test/support/load_schema_sqlserver.rb
activerecord-sqlserver-adapter-7.1.2 test/support/load_schema_sqlserver.rb
activerecord-sqlserver-adapter-7.1.1 test/support/load_schema_sqlserver.rb
activerecord-sqlserver-adapter-7.1.0 test/support/load_schema_sqlserver.rb
activerecord-sqlserver-adapter-7.0.6 test/support/load_schema_sqlserver.rb
activerecord-sqlserver-adapter-7.1.0.rc2 test/support/load_schema_sqlserver.rb
activerecord-sqlserver-adapter-7.1.0.rc1 test/support/load_schema_sqlserver.rb
activerecord-sqlserver-adapter-7.0.5.1 test/support/load_schema_sqlserver.rb
activerecord-sqlserver-adapter-7.1.0.beta1 test/support/load_schema_sqlserver.rb