Skip to content
Browse files

Pass only column name to `#remove_column`

@mvz caught this in 90ea9da.
Thank you!
  • Loading branch information...
1 parent 271008d commit 127e8797fb3c6daa2dbcd6763778d58b6645777f @sikachu sikachu committed Jun 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/paperclip/schema.rb
View
2 lib/paperclip/schema.rb
@@ -34,7 +34,7 @@ def remove_attachment(table_name, *attachment_names)
attachment_names.each do |attachment_name|
COLUMNS.each_pair do |column_name, column_type|
- remove_column(table_name, "#{attachment_name}_#{column_name}", column_type)
+ remove_column(table_name, "#{attachment_name}_#{column_name}")
end
end
end

0 comments on commit 127e879

Please sign in to comment.
Something went wrong with that request. Please try again.