diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2017-12-03 04:57:04 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2017-12-03 05:01:41 +0900 |
commit | 01fb0907b2dafcecf63eedb80408d4cbff5f4d23 (patch) | |
tree | 4622fcd232d0c9af123a843de7f3c38d71e266f4 /activerecord/test/schema | |
parent | 6a7787218b8d75913b58d7bed198495e8d29e34e (diff) | |
download | rails-01fb0907b2dafcecf63eedb80408d4cbff5f4d23.tar.gz rails-01fb0907b2dafcecf63eedb80408d4cbff5f4d23.tar.bz2 rails-01fb0907b2dafcecf63eedb80408d4cbff5f4d23.zip |
Refactor `length`, `order`, and `opclass` index options dumping
Diffstat (limited to 'activerecord/test/schema')
-rw-r--r-- | activerecord/test/schema/schema.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/test/schema/schema.rb b/activerecord/test/schema/schema.rb index a4505a4892..bf66846840 100644 --- a/activerecord/test/schema/schema.rb +++ b/activerecord/test/schema/schema.rb @@ -205,6 +205,8 @@ ActiveRecord::Schema.define do t.bigint :rating, default: 1 t.integer :account_id t.string :description, default: "" + t.index [:name, :rating], order: :desc + t.index [:name, :description], length: 10 t.index [:firm_id, :type, :rating], name: "company_index", length: { type: 10 }, order: { rating: :desc } t.index [:firm_id, :type], name: "company_partial_index", where: "(rating > 10)" t.index :name, name: "company_name_index", using: :btree |