-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing indexes for github_id to GithubComment, GithubIssue, Gith…
…ubRepo
- Loading branch information
Showing
2 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
priv/repo/migrations/20171017235433_add_missing_github_id_indexes.exs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
defmodule CodeCorps.Repo.Migrations.AddMissingGithubIdIndexes do | ||
use Ecto.Migration | ||
|
||
def change do | ||
create index(:github_comments, [:github_id], unique: true) | ||
create index(:github_issues, [:github_id], unique: true) | ||
create index(:github_repos, [:github_id], unique: true) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters