diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-02-06 21:21:48 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-02-06 21:21:48 +0300 |
commit | 3e97ac2022c52a79640fccc97127f8bb059134fd (patch) | |
tree | 0bd0d096b04e9ac8743d40533e751c1f0a42798f /db/migrate/20150206181414_add_index_to_created_at.rb | |
parent | dd8dd92e501b7e980e913e7fa3a3efa5824d21fe (diff) |
Add index on order columns
Diffstat (limited to 'db/migrate/20150206181414_add_index_to_created_at.rb')
-rw-r--r-- | db/migrate/20150206181414_add_index_to_created_at.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/db/migrate/20150206181414_add_index_to_created_at.rb b/db/migrate/20150206181414_add_index_to_created_at.rb new file mode 100644 index 00000000000..fc624fca60d --- /dev/null +++ b/db/migrate/20150206181414_add_index_to_created_at.rb @@ -0,0 +1,16 @@ +class AddIndexToCreatedAt < ActiveRecord::Migration + def change + add_index "users", [:created_at, :id] + add_index "members", [:created_at, :id] + add_index "projects", [:created_at, :id] + add_index "issues", [:created_at, :id] + add_index "merge_requests", [:created_at, :id] + add_index "milestones", [:created_at, :id] + add_index "namespaces", [:created_at, :id] + add_index "notes", [:created_at, :id] + add_index "identities", [:created_at, :id] + add_index "keys", [:created_at, :id] + add_index "web_hooks", [:created_at, :id] + add_index "snippets", [:created_at, :id] + end +end |