diff options
-rw-r--r-- | railties/lib/rails/generators/named_base.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/named_base.rb b/railties/lib/rails/generators/named_base.rb index d891ba1215..fbb747970d 100644 --- a/railties/lib/rails/generators/named_base.rb +++ b/railties/lib/rails/generators/named_base.rb @@ -18,6 +18,10 @@ module Rails parse_attributes! if respond_to?(:attributes) end + # Defines the template that would be used for the migration file. + # The source defines the source template file that would be used in creating the migration + # The args is an array containing any other options and the name of the file which would be saved on the filesystem + no_tasks do def template(source, *args, &block) inside_template do |