Skip to content

Commit

Permalink
Fix name error
Browse files Browse the repository at this point in the history
  • Loading branch information
dazuma committed Aug 15, 2011
1 parent a402a2e commit d1a4ceb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rgeo/active_record/common_adapter_elements.rb
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def indexes(table_, stream_)
statement_parts_ << ':unique => true' if index_.unique
statement_parts_ << ':spatial => true' if index_.respond_to?(:spatial) && index_.spatial
index_lengths_ = (index_.lengths || []).compact
statement_parts_ << (':length => ' + ::Hash[*index_.columns.zip(index_.lengths).flatten].inspect) unless index_lengths.empty?
statement_parts_ << (':length => ' + ::Hash[*index_.columns.zip(index_.lengths).flatten].inspect) unless index_lengths_.empty?
' ' + statement_parts_.join(', ')
end
stream_.puts add_index_statements_.sort.join("\n")
Expand Down

0 comments on commit d1a4ceb

Please sign in to comment.