Browse files

Added documentation for ActiveRecord::Generators::MigrationGenerator.…

  • Loading branch information...
1 parent fe7cf89 commit ff34afc202ea5f008a072423f671147897e9d02e @aditya-kapoor aditya-kapoor committed May 9, 2013
4 activerecord/lib/rails/generators/active_record/migration/migration_generator.rb
@@ -14,6 +14,10 @@ def create_migration_file
attr_reader :migration_action, :join_tables
+ # sets the default migration template that is being used for the generation of the migration
+ # depending on the arguments which would be sent out in the command line, the migration template
+ # and the table name instance variables are setup.
def set_local_assigns!
@migration_template = "migration.rb"
case file_name

0 comments on commit ff34afc

Please sign in to comment.