Skip to content

Commit 39ab436

Browse files
committed
Just making sure a paren surounded integer looking string default does what it should.
1 parent 66ecd2e commit 39ab436

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

test/cases/specific_schema_test_sqlserver.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ class SpecificSchemaTestSqlserver < ActiveRecord::TestCase
1111
assert_equal '(null)', default.string_with_pretend_null_two
1212
assert_equal 'NULL', default.string_with_pretend_null_three
1313
assert_equal '(NULL)', default.string_with_pretend_null_four
14+
assert_equal '(3)', default.string_with_pretend_paren_three
1415
end
1516

1617
should 'default strings after save' do

test/schema/sqlserver_specific_schema.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
t.column :string_with_pretend_null_two, :string, :default => '(null)'
1818
t.column :string_with_pretend_null_three, :string, :default => 'NULL'
1919
t.column :string_with_pretend_null_four, :string, :default => '(NULL)'
20+
t.column :string_with_pretend_paren_three, :string, :default => '(3)'
2021
end
2122

2223
create_table :sql_server_chronics, :force => true do |t|

0 commit comments

Comments
 (0)