Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
bf31b449
Commit
bf31b449
authored
Apr 13, 2016
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Schema improvements suggested by Yorick
parent
0f602be9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
db/migrate/20160315135439_project_add_repository_check.rb
db/migrate/20160315135439_project_add_repository_check.rb
+3
-1
db/schema.rb
db/schema.rb
+2
-1
No files found.
db/migrate/20160315135439_project_add_repository_check.rb
View file @
bf31b449
class
ProjectAddRepositoryCheck
<
ActiveRecord
::
Migration
class
ProjectAddRepositoryCheck
<
ActiveRecord
::
Migration
def
change
def
change
add_column
:projects
,
:last_repository_check_failed
,
:boolean
,
default:
false
add_column
:projects
,
:last_repository_check_failed
,
:boolean
add_index
:projects
,
:last_repository_check_failed
add_column
:projects
,
:last_repository_check_at
,
:datetime
add_column
:projects
,
:last_repository_check_at
,
:datetime
end
end
end
end
db/schema.rb
View file @
bf31b449
...
@@ -732,7 +732,7 @@ ActiveRecord::Schema.define(version: 20160412140240) do
...
@@ -732,7 +732,7 @@ ActiveRecord::Schema.define(version: 20160412140240) do
t
.
boolean
"public_builds"
,
default:
true
,
null:
false
t
.
boolean
"public_builds"
,
default:
true
,
null:
false
t
.
string
"main_language"
t
.
string
"main_language"
t
.
integer
"pushes_since_gc"
,
default:
0
t
.
integer
"pushes_since_gc"
,
default:
0
t
.
boolean
"last_repository_check_failed"
,
default:
false
t
.
boolean
"last_repository_check_failed"
t
.
datetime
"last_repository_check_at"
t
.
datetime
"last_repository_check_at"
end
end
...
@@ -743,6 +743,7 @@ ActiveRecord::Schema.define(version: 20160412140240) do
...
@@ -743,6 +743,7 @@ ActiveRecord::Schema.define(version: 20160412140240) do
add_index
"projects"
,
[
"creator_id"
],
name:
"index_projects_on_creator_id"
,
using: :btree
add_index
"projects"
,
[
"creator_id"
],
name:
"index_projects_on_creator_id"
,
using: :btree
add_index
"projects"
,
[
"description"
],
name:
"index_projects_on_description_trigram"
,
using: :gin
,
opclasses:
{
"description"
=>
"gin_trgm_ops"
}
add_index
"projects"
,
[
"description"
],
name:
"index_projects_on_description_trigram"
,
using: :gin
,
opclasses:
{
"description"
=>
"gin_trgm_ops"
}
add_index
"projects"
,
[
"last_activity_at"
],
name:
"index_projects_on_last_activity_at"
,
using: :btree
add_index
"projects"
,
[
"last_activity_at"
],
name:
"index_projects_on_last_activity_at"
,
using: :btree
add_index
"projects"
,
[
"last_repository_check_failed"
],
name:
"index_projects_on_last_repository_check_failed"
,
using: :btree
add_index
"projects"
,
[
"name"
],
name:
"index_projects_on_name_trigram"
,
using: :gin
,
opclasses:
{
"name"
=>
"gin_trgm_ops"
}
add_index
"projects"
,
[
"name"
],
name:
"index_projects_on_name_trigram"
,
using: :gin
,
opclasses:
{
"name"
=>
"gin_trgm_ops"
}
add_index
"projects"
,
[
"namespace_id"
],
name:
"index_projects_on_namespace_id"
,
using: :btree
add_index
"projects"
,
[
"namespace_id"
],
name:
"index_projects_on_namespace_id"
,
using: :btree
add_index
"projects"
,
[
"path"
],
name:
"index_projects_on_path"
,
using: :btree
add_index
"projects"
,
[
"path"
],
name:
"index_projects_on_path"
,
using: :btree
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment