forked from houndci/hound
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add index to users for remember_token * Add index to repos for active * Add unique index to repos for github_id
- Loading branch information
1 parent
dfeeee4
commit 7a61c26
Showing
4 changed files
with
22 additions
and
2 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
db/migrate/20140418142740_add_index_for_remember_token_to_users.rb
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,5 @@ | ||
class AddIndexForRememberTokenToUsers < ActiveRecord::Migration | ||
def change | ||
add_index :users, :remember_token | ||
end | ||
end |
5 changes: 5 additions & 0 deletions
5
db/migrate/20140418144357_add_index_for_github_id_to_repos.rb
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,5 @@ | ||
class AddIndexForGithubIdToRepos < ActiveRecord::Migration | ||
def change | ||
add_index :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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class AddIndexForActiveToRepos < ActiveRecord::Migration | ||
def change | ||
add_index :repos, :active | ||
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