Commit 28e2d1ba by mikong Committed by Prem Sichanugrist

Pluralize generated migration class and file name.

parent 1e50b08b
......@@ -19,7 +19,7 @@ class PaperclipGenerator < ActiveRecord::Generators::Base
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment