Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Pluralize generated migration class and file name.

  • Loading branch information...
commit 28e2d1ba3fea0e23a63d3ff46cd105a4148af197 1 parent 1e50b08
@mikong mikong authored sikachu committed
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
Please sign in to comment.
Something went wrong with that request. Please try again.