aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/rails/generators/active_record
diff options
context:
space:
mode:
authoraditya-kapoor <aditya.kapoor@vinsol.com>2013-05-10 00:03:29 +0530
committeraditya-kapoor <aditya.kapoor@vinsol.com>2013-05-10 00:03:29 +0530
commitff34afc202ea5f008a072423f671147897e9d02e (patch)
tree915f20a5b2438617c54ab6caa2eb1d729d7bb647 /activerecord/lib/rails/generators/active_record
parentfe7cf89193bcbb92d1a4dd86e67da9627c20a167 (diff)
downloadrails-ff34afc202ea5f008a072423f671147897e9d02e.tar.gz
rails-ff34afc202ea5f008a072423f671147897e9d02e.tar.bz2
rails-ff34afc202ea5f008a072423f671147897e9d02e.zip
Added documentation for ActiveRecord::Generators::MigrationGenerator.next_migration_number
Diffstat (limited to 'activerecord/lib/rails/generators/active_record')
-rw-r--r--activerecord/lib/rails/generators/active_record/migration/migration_generator.rb4
1 files changed, 4 insertions, 0 deletions
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