Skip to content

Commit 70c8be3

Browse files
wpolicarpoKanika Gupta
authored and
Kanika Gupta
committed
Merge pull request rails-sqlserver#691 from ahorek/constrains_bug
fix constrains bug
1 parent 9413096 commit 70c8be3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/cases/migration_test_sqlserver.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,14 @@ class MigrationTestSQLServer < ActiveRecord::TestCase
5959
it "change limit" do
6060
assert_nothing_raised { connection.change_column :people, :lock_version, :integer, limit: 8 }
6161
end
62+
63+
it 'change limit' do
64+
assert_nothing_raised { connection.change_column :people, :lock_version, :integer, limit: 8 }
65+
end
66+
67+
it 'change null and default' do
68+
assert_nothing_raised { connection.change_column :people, :first_name, :text, null: true, default: nil }
69+
end
6270

6371
it "change null and default" do
6472
assert_nothing_raised { connection.change_column :people, :first_name, :text, null: true, default: nil }

0 commit comments

Comments
 (0)