Skip to content
Browse files

Fix typo on the add_index.

  • Loading branch information...
1 parent 0232543 commit c500cffe5f2ac1288501119f80d9323032a46fc9 @kennyj kennyj committed with
View
2 activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
@@ -376,7 +376,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 c500cff

Please sign in to comment.
Something went wrong with that request. Please try again.