mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
remove a few function calls
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user