Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
Pluralize generated migration class and file name.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikong authored and sikachu committed Apr 9, 2012
1 parent 1e50b08 commit 28e2d1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/generators/paperclip/paperclip_generator.rb
Expand Up @@ -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
Expand Down

0 comments on commit 28e2d1b

Please sign in to comment.