# File lib/rails/generators/active_record/model/model_generator.rb, line 33 33: def accessible_attributes 34: attributes.reject(&:reference?) 35: end
# File lib/rails/generators/active_record/model/model_generator.rb, line 29 29: def attributes_with_index 30: attributes.select { |a| a.has_index? || (a.reference? && options[:indexes]) } 31: end
# File lib/rails/generators/active_record/model/model_generator.rb, line 15 15: def create_migration_file 16: return unless options[:migration] && options[:parent].nil? 17: migration_template "migration.rb", "db/migrate/create_#{table_name}.rb" 18: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.