ActiveRecord::Generators::Base
# File lib/rails/generators/active_record/migration/migration_generator.rb, line 8 8: def create_migration_file 9: set_local_assigns! 10: migration_template "migration.rb", "db/migrate/#{file_name}.rb" 11: end
# File lib/rails/generators/active_record/migration/migration_generator.rb, line 16 16: def set_local_assigns! 17: if file_name =~ /^(add|remove)_.*_(?:to|from)_(.*)/ 18: @migration_action = $1 19: @table_name = $2.pluralize 20: end 21: end
Disabled; run with --debug to generate this.
[Validate]
Generated with the Darkfish Rdoc Generator 1.1.6.