Skip to content
This repository
Browse code

Pluralize generated migration class and file name.

  • Loading branch information...
commit 28e2d1ba3fea0e23a63d3ff46cd105a4148af197 1 parent 1e50b08
Michael Galero authored sikachu committed
2  lib/generators/paperclip/paperclip_generator.rb
@@ -19,7 +19,7 @@ def generate_migration
19 19
   protected
20 20
 
21 21
   def migration_name
22  
-    "add_attachment_#{attachment_names.join("_")}_to_#{name.underscore}"
  22
+    "add_attachment_#{attachment_names.join("_")}_to_#{name.underscore.pluralize}"
23 23
   end
24 24
 
25 25
   def migration_file_name

0 notes on commit 28e2d1b

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