Commit 127e8797 by Prem Sichanugrist

Pass only column name to `#remove_column`

@mvz caught this in 90ea9dab.
Thank you!
parent 271008dc
...@@ -34,7 +34,7 @@ module Paperclip ...@@ -34,7 +34,7 @@ module Paperclip
attachment_names.each do |attachment_name| attachment_names.each do |attachment_name|
COLUMNS.each_pair do |column_name, column_type| 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 end
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment