Skip to content

Commit babdf59

Browse files
committed
[Rails51] Pass the following tests.
* CoreTest#test_inspect_class * ReflectionTest#test_association_primary_key_type * ReflectionTest#test_integer_columns * ActiveRecord::Migration::ReferencesStatementsTest#test_add_belongs_to_alias * ActiveRecord::Migration::ReferencesStatementsTest#test_creates_reference_id_column
1 parent 89ccbe4 commit babdf59

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

lib/active_record/connection_adapters/sqlserver/type/big_integer.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ module SQLServer
44
module Type
55
class BigInteger < Integer
66

7-
def type
8-
:bigint
9-
end
10-
117
def sqlserver_type
128
'bigint'.freeze
139
end

test/cases/column_test_sqlserver.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def assert_obj_set_and_save(attribute, value)
3636
it 'bigint(8)' do
3737
col = column('bigint')
3838
col.sql_type.must_equal 'bigint(8)'
39-
col.type.must_equal :bigint
39+
col.type.must_equal :integer
4040
col.null.must_equal true
4141
col.default.must_equal 42
4242
obj.bigint.must_equal 42

0 commit comments

Comments
 (0)