Sha256: 70769b635f1f3d50ac20191b19824364a725f1ca59e90b8fd1ed599a47219f8e

Contents?: true

Size: 633 Bytes

Versions: 11

Compression:

Stored size: 633 Bytes

Contents

require 'jdbc_common'
require 'db/postgres'

class BooleanSchema < ActiveRecord::Migration
  def self.up
    create_table :booleans do |t|
      t.boolean :value, :default => false, :null => false
    end
  end

  def self.down
    drop_table :booleans
  end
end

class Boolean < ActiveRecord::Base
end

class PostgresTypeConversionTest < Test::Unit::TestCase
  def setup
    BooleanSchema.up
  end

  def teardown
    BooleanSchema.down
  end

  def test_should_handle_bool_conversion_with_boolean_relation
    assert_nothing_raised do
      ActiveRecord::Base.connection.raw_connection.set_native_database_types
    end
  end
end

Version data entries

11 entries across 11 versions & 4 rubygems

Version Path
cmoran92-activerecord-jdbc-adapter-1.2.1.2 test/postgres_type_conversion_test.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.5 test/postgres_type_conversion_test.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.4 test/postgres_type_conversion_test.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.3 test/postgres_type_conversion_test.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.2 test/postgres_type_conversion_test.rb
activerecord-jdbc-adapter-1.2.2.1 test/postgres_type_conversion_test.rb
activerecord-jdbc-adapter-onsite-1.2.2 test/postgres_type_conversion_test.rb
cmoran92-activerecord-jdbc-adapter-1.2.1.1 test/postgres_type_conversion_test.rb
activerecord-jdbc-adapter-1.2.2 test/postgres_type_conversion_test.rb
cmoran92-activerecord-jdbc-adapter-1.2.1 test/postgres_type_conversion_test.rb
activerecord-jdbc-adapter-1.2.1 test/postgres_type_conversion_test.rb