From ff34afc202ea5f008a072423f671147897e9d02e Mon Sep 17 00:00:00 2001 From: aditya-kapoor Date: Fri, 10 May 2013 00:03:29 +0530 Subject: Added documentation for ActiveRecord::Generators::MigrationGenerator.next_migration_number --- .../rails/generators/active_record/migration/migration_generator.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'activerecord/lib/rails/generators/active_record/migration/migration_generator.rb') diff --git a/activerecord/lib/rails/generators/active_record/migration/migration_generator.rb b/activerecord/lib/rails/generators/active_record/migration/migration_generator.rb index b967bb6e0f..3968acba64 100644 --- a/activerecord/lib/rails/generators/active_record/migration/migration_generator.rb +++ b/activerecord/lib/rails/generators/active_record/migration/migration_generator.rb @@ -14,6 +14,10 @@ module ActiveRecord protected 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 -- cgit v1.2.3