Permalink
Browse files

Fix typo on the add_index.

  • Loading branch information...
1 parent 8248f42 commit 611020b4dd16799cc836ab15d7a010e6ad48c1ad @kennyj kennyj committed Apr 12, 2012
View
2 activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
@@ -375,7 +375,7 @@ def rename_column(table_name, column_name, new_column_name)
# Note: SQLite doesn't support index length
#
# ====== Creating an index with a sort order (desc or asc, asc is the default)
- # add_index(:accounts, [:branch_id, :party_id, :surname], :order => {:branch_id => :desc, :part_id => :asc})
+ # add_index(:accounts, [:branch_id, :party_id, :surname], :order => {:branch_id => :desc, :party_id => :asc})
# generates
# CREATE INDEX by_branch_desc_party ON accounts(branch_id DESC, party_id ASC, surname)
#

0 comments on commit 611020b

Please sign in to comment.