diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-10-03 15:18:32 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-10-03 15:18:32 -0700 |
commit | 7836616a6473527f1f42672e54cf6971c05f6fdf (patch) | |
tree | 2ada220016e8a915f6c428894aa52d1d31f28b52 | |
parent | bd78d24bd8168b43ceb167e8d8b3e542486a1bba (diff) | |
download | rails-7836616a6473527f1f42672e54cf6971c05f6fdf.tar.gz rails-7836616a6473527f1f42672e54cf6971c05f6fdf.tar.bz2 rails-7836616a6473527f1f42672e54cf6971c05f6fdf.zip |
remove a few function calls
-rw-r--r-- | activerecord/lib/active_record/schema_dumper.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/schema_dumper.rb b/activerecord/lib/active_record/schema_dumper.rb index 6faa88ab78..437f01b657 100644 --- a/activerecord/lib/active_record/schema_dumper.rb +++ b/activerecord/lib/active_record/schema_dumper.rb @@ -176,9 +176,11 @@ HEADER def indexes(table, stream) if (indexes = @connection.indexes(table)).any? add_index_statements = indexes.map do |index| - statement_parts = [ ('add_index ' + index.table.inspect) ] - statement_parts << index.columns.inspect - statement_parts << (':name => ' + index.name.inspect) + statement_parts = [ + ('add_index ' + index.table.inspect), + index.columns.inspect, + (':name => ' + index.name.inspect), + ] statement_parts << ':unique => true' if index.unique index_lengths = index.lengths.compact if index.lengths.is_a?(Array) |