Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix typo on the add_index.

  • Loading branch information...
commit 611020b4dd16799cc836ab15d7a010e6ad48c1ad 1 parent 8248f42
@kennyj kennyj authored
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)
Please sign in to comment.
Something went wrong with that request. Please try again.