Skip to content

Commit

Permalink
Merge pull request #21693 from joshuapinter/patch-1
Browse files Browse the repository at this point in the history
Add title for key lengths for multiple keys.
  • Loading branch information
jeremy committed Sep 20, 2015
2 parents a9f83b6 + 5df94c6 commit c2c7cea
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,8 @@ def rename_column(table_name, column_name, new_column_name)
#
# CREATE INDEX by_name ON accounts(name(10))
#
# ====== Creating an index with specific key lengths for multiple keys
#
# add_index(:accounts, [:name, :surname], name: 'by_name_surname', length: {name: 10, surname: 15})
#
# generates:
Expand Down

0 comments on commit c2c7cea

Please sign in to comment.