Commit 24aa94dc by Ivan Committed by Jon Yurek

Replace drop_attached_file with remove_attachment

 as the former is deprecated and throws a warning.
parent 37e41856
...@@ -9,7 +9,7 @@ class <%= migration_class_name %> < ActiveRecord::Migration ...@@ -9,7 +9,7 @@ class <%= migration_class_name %> < ActiveRecord::Migration
def self.down def self.down
<% attachment_names.each do |attachment| -%> <% attachment_names.each do |attachment| -%>
drop_attached_file :<%= table_name %>, :<%= attachment %> remove_attachment :<%= table_name %>, :<%= attachment %>
<% 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