diff options
author | Evgeniy Dolzhenko <dolzenko@gmail.com> | 2010-06-15 12:04:22 +0400 |
---|---|---|
committer | Evgeniy Dolzhenko <dolzenko@gmail.com> | 2010-06-15 12:04:22 +0400 |
commit | ef404c771d11b5c396907e47581f36b654d820df (patch) | |
tree | 3fa35041c1efb93e2067950d032e280788e8029d /activerecord/lib/active_record/schema_dumper.rb | |
parent | 3cc2d196c03fbc5cf21babf777dfa841f3d1012d (diff) | |
parent | ed507300f05fa5e86f7f7d8988f2d25a91b37b8b (diff) | |
download | rails-ef404c771d11b5c396907e47581f36b654d820df.tar.gz rails-ef404c771d11b5c396907e47581f36b654d820df.tar.bz2 rails-ef404c771d11b5c396907e47581f36b654d820df.zip |
Fix a bunch of minor spelling mistakes
Diffstat (limited to 'activerecord/lib/active_record/schema_dumper.rb')
-rw-r--r-- | activerecord/lib/active_record/schema_dumper.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/activerecord/lib/active_record/schema_dumper.rb b/activerecord/lib/active_record/schema_dumper.rb index cd54653581..71ef249ee1 100644 --- a/activerecord/lib/active_record/schema_dumper.rb +++ b/activerecord/lib/active_record/schema_dumper.rb @@ -173,15 +173,15 @@ HEADER def indexes(table, stream) if (indexes = @connection.indexes(table)).any? add_index_statements = indexes.map do |index| - statment_parts = [ ('add_index ' + index.table.inspect) ] - statment_parts << index.columns.inspect - statment_parts << (':name => ' + index.name.inspect) - statment_parts << ':unique => true' if index.unique + statement_parts = [ ('add_index ' + index.table.inspect) ] + statement_parts << index.columns.inspect + statement_parts << (':name => ' + index.name.inspect) + statement_parts << ':unique => true' if index.unique index_lengths = index.lengths.compact if index.lengths.is_a?(Array) - statment_parts << (':length => ' + Hash[*index.columns.zip(index.lengths).flatten].inspect) if index_lengths.present? + statement_parts << (':length => ' + Hash[*index.columns.zip(index.lengths).flatten].inspect) if index_lengths.present? - ' ' + statment_parts.join(', ') + ' ' + statement_parts.join(', ') end stream.puts add_index_statements.sort.join("\n") |