diff options
author | Jeremy Daer <jeremydaer@gmail.com> | 2015-09-20 15:32:56 -0700 |
---|---|---|
committer | Jeremy Daer <jeremydaer@gmail.com> | 2015-09-20 15:32:56 -0700 |
commit | c2c7cea13ae8b5eb2e96b194cc9c141784ea1f36 (patch) | |
tree | ef97d9e48041e617a5c6a956bad1784633863239 | |
parent | a9f83b66e9b83ad8d1fdd3cb29e84190410feb01 (diff) | |
parent | 5df94c6ffd82a7d42f36e36892281a4b28ce2ebc (diff) | |
download | rails-c2c7cea13ae8b5eb2e96b194cc9c141784ea1f36.tar.gz rails-c2c7cea13ae8b5eb2e96b194cc9c141784ea1f36.tar.bz2 rails-c2c7cea13ae8b5eb2e96b194cc9c141784ea1f36.zip |
Merge pull request #21693 from joshuapinter/patch-1
Add title for key lengths for multiple keys.
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb index 220ac08990..40175c8c8c 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb @@ -559,6 +559,8 @@ module ActiveRecord # # 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: |