diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2012-04-18 00:10:06 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2012-04-18 00:10:06 +0530 |
commit | 5b336ff44364ac4adcf137838e71a8f0bb4f35a0 (patch) | |
tree | c15002d3b3a2a5c2a2f8c17c309f170620025408 /activerecord | |
parent | 1d26fcb9f896a3dc98d90ad734aa5da7ac2bbcda (diff) | |
parent | b7e3c8e1f387e4c0843371971317ca7972d8aeb5 (diff) | |
download | rails-5b336ff44364ac4adcf137838e71a8f0bb4f35a0.tar.gz rails-5b336ff44364ac4adcf137838e71a8f0bb4f35a0.tar.bz2 rails-5b336ff44364ac4adcf137838e71a8f0bb4f35a0.zip |
Merge branch 'master' of github.com:lifo/docrails
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb | 2 |
1 files changed, 1 insertions, 1 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 10b3657ced..30a4f9aa35 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb @@ -376,7 +376,7 @@ module ActiveRecord # 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) # |