blob: c9c0155e9b7ce7d5f9ae540e9486a83e3da2e350 (
plain)
1
2
3
4
5
6
7
8
9
|
class AddCommitIndicies < ActiveRecord::Migration
def change
add_index :commits, :project_id
add_index :commits, :sha, length: 6
add_index :commits, [:project_id, :sha]
add_index :builds, :commit_id
add_index :builds, [:project_id, :commit_id]
end
end
|