Skip to content

Commit 26c226f

Browse files
committed
before AR 4.0 table.remove only accepted a single column name
1 parent 1051646 commit 26c226f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/db/mysql/simple_test.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,11 @@ def test_mysql_indexes
272272

273273
assert_queries(1) do
274274
with_bulk_change_table('bulks') do |t|
275-
t.remove :qualification, :experience
275+
if ar_version('4.0')
276+
t.remove :qualification, :experience
277+
else
278+
t.remove :qualification; t.remove :experience
279+
end
276280
t.string :qualification_experience
277281
end
278282
end

0 commit comments

Comments
 (0)