Skip to content

Commit a5999c3

Browse files
committed
[Rails3] Passing a few smaller tests.
1 parent 0a1debe commit a5999c3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/active_record/connection_adapters/sqlserver/schema_statements.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ def add_column(table_name, column_name, type, options = {})
8585
end
8686

8787
def remove_column(table_name, *column_names)
88+
raise ArgumentError.new("You must specify at least one column name. Example: remove_column(:people, :first_name)") if column_names.empty?
8889
column_names.flatten.each do |column_name|
8990
remove_check_constraints(table_name, column_name)
9091
remove_default_constraint(table_name, column_name)

test/cases/pessimistic_locking_test_sqlserver.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def setup
8989
first, second = duel(zzz) { Person.find 1, :lock => true }
9090
second.end > first.end
9191
}
92-
end
92+
end if RUBY_VERSION < '1.9'
9393

9494
end
9595

0 commit comments

Comments
 (0)