Skip to content

Commit

Permalink
Pass only column name to #remove_column
Browse files Browse the repository at this point in the history
@mvz caught this in 90ea9da.
Thank you!
  • Loading branch information
sikachu committed Jun 18, 2012
1 parent 271008d commit 127e879
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/paperclip/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 127e879

Please sign in to comment.