diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-02-10 01:21:27 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-02-10 01:21:52 +0300 |
commit | aaa7a065c6fff7c57b750fd50f73866afe7ba026 (patch) | |
tree | 52f57a02198f5ed32c2813c3be01142baf2321dd /db/migrate/20150209222013_add_missing_index.rb | |
parent | 86bb522713e8519e7b6c06f1fcb2cc752cc37212 (diff) |
Add index on order columns for services table
Diffstat (limited to 'db/migrate/20150209222013_add_missing_index.rb')
-rw-r--r-- | db/migrate/20150209222013_add_missing_index.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/db/migrate/20150209222013_add_missing_index.rb b/db/migrate/20150209222013_add_missing_index.rb new file mode 100644 index 00000000000..a816c2e9e8c --- /dev/null +++ b/db/migrate/20150209222013_add_missing_index.rb @@ -0,0 +1,5 @@ +class AddMissingIndex < ActiveRecord::Migration + def change + add_index "services", [:created_at, :id] + end +end |