Browse files

Pluralize generated migration class and file name.

  • Loading branch information...
1 parent 1e50b08 commit 28e2d1ba3fea0e23a63d3ff46cd105a4148af197 @mikong mikong committed with sikachu Apr 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/generators/paperclip/paperclip_generator.rb
View
2 lib/generators/paperclip/paperclip_generator.rb
@@ -19,7 +19,7 @@ def generate_migration
protected
def migration_name
- "add_attachment_#{attachment_names.join("_")}_to_#{name.underscore}"
+ "add_attachment_#{attachment_names.join("_")}_to_#{name.underscore.pluralize}"
end
def migration_file_name

0 comments on commit 28e2d1b

Please sign in to comment.