Skip to content
Browse files

Pluralize generated migration class and file name.

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

0 comments on commit 28e2d1b

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