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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
486177e4
Commit
486177e4
authored
Jan 19, 2017
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update db/schema.rb
parent
ef9d96f5
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
29 additions
and
3 deletions
+29
-3
app/models/ee/application_setting.rb
app/models/ee/application_setting.rb
+13
-0
db/migrate/20170106172234_add_shared_runners_minutes_to_application_settings.rb
...234_add_shared_runners_minutes_to_application_settings.rb
+0
-0
db/migrate/20170106172235_add_shared_runners_minutes_limit_to_namespace.rb
...06172235_add_shared_runners_minutes_limit_to_namespace.rb
+0
-0
db/migrate/20170106172236_create_table_namespace_statistics.rb
...grate/20170106172236_create_table_namespace_statistics.rb
+0
-0
db/migrate/20170106172237_add_shared_runners_minutes_to_project_statistics.rb
...72237_add_shared_runners_minutes_to_project_statistics.rb
+0
-0
db/schema.rb
db/schema.rb
+16
-3
No files found.
app/models/ee/application_setting.rb
0 → 100644
View file @
486177e4
module
EE
# Build EE mixin
#
# This module is intended to encapsulate EE-specific model logic
# and be included in the `Build` model
module
Build
extend
ActiveSupport
::
Concern
def
shared_runners_minutes_limit_enabled?
runner
&&
runner
.
shared?
&&
project
.
shared_runners_minutes_limit_enabled?
end
end
end
db/migrate/201
61202152036
_add_shared_runners_minutes_to_application_settings.rb
→
db/migrate/201
70106172234
_add_shared_runners_minutes_to_application_settings.rb
View file @
486177e4
File moved
db/migrate/201
61202152037
_add_shared_runners_minutes_limit_to_namespace.rb
→
db/migrate/201
70106172235
_add_shared_runners_minutes_limit_to_namespace.rb
View file @
486177e4
File moved
db/migrate/201
61202152038
_create_table_namespace_statistics.rb
→
db/migrate/201
70106172236
_create_table_namespace_statistics.rb
View file @
486177e4
File moved
db/migrate/201
61202152039
_add_shared_runners_minutes_to_project_statistics.rb
→
db/migrate/201
70106172237
_add_shared_runners_minutes_to_project_statistics.rb
View file @
486177e4
File moved
db/schema.rb
View file @
486177e4
...
...
@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
version:
201701061722
24
)
do
ActiveRecord
::
Schema
.
define
(
version:
201701061722
37
)
do
# These are extensions that must be enabled in order to support this database
enable_extension
"plpgsql"
...
...
@@ -118,6 +118,7 @@ ActiveRecord::Schema.define(version: 20170106172224) do
t
.
boolean
"html_emails_enabled"
,
default:
true
t
.
string
"plantuml_url"
t
.
boolean
"plantuml_enabled"
t
.
integer
"shared_runners_minutes"
,
default:
0
,
null:
false
end
create_table
"approvals"
,
force: :cascade
do
|
t
|
...
...
@@ -824,6 +825,14 @@ ActiveRecord::Schema.define(version: 20170106172224) do
add_index
"milestones"
,
[
"title"
],
name:
"index_milestones_on_title"
,
using: :btree
add_index
"milestones"
,
[
"title"
],
name:
"index_milestones_on_title_trigram"
,
using: :gin
,
opclasses:
{
"title"
=>
"gin_trgm_ops"
}
create_table
"namespace_statistics"
,
force: :cascade
do
|
t
|
t
.
integer
"namespace_id"
,
null:
false
t
.
integer
"shared_runners_minutes"
,
default:
0
,
null:
false
t
.
datetime
"shared_runners_minutes_last_reset"
end
add_index
"namespace_statistics"
,
[
"namespace_id"
],
name:
"index_namespace_statistics_on_namespace_id"
,
unique:
true
,
using: :btree
create_table
"namespaces"
,
force: :cascade
do
|
t
|
t
.
string
"name"
,
null:
false
t
.
string
"path"
,
null:
false
...
...
@@ -847,14 +856,15 @@ ActiveRecord::Schema.define(version: 20170106172224) do
t
.
integer
"repository_size_limit"
t
.
text
"description_html"
t
.
integer
"parent_id"
t
.
integer
"shared_runners_minutes_limit"
end
add_index
"namespaces"
,
[
"created_at"
],
name:
"index_namespaces_on_created_at"
,
using: :btree
add_index
"namespaces"
,
[
"deleted_at"
],
name:
"index_namespaces_on_deleted_at"
,
using: :btree
add_index
"namespaces"
,
[
"ldap_sync_last_successful_update_at"
],
name:
"index_namespaces_on_ldap_sync_last_successful_update_at"
,
using: :btree
add_index
"namespaces"
,
[
"ldap_sync_last_update_at"
],
name:
"index_namespaces_on_ldap_sync_last_update_at"
,
using: :btree
add_index
"namespaces"
,
[
"name"
],
name:
"index_namespaces_on_name"
,
unique:
true
,
using: :btree
add_index
"namespaces"
,
[
"name"
,
"parent_id"
],
name:
"index_namespaces_on_name_and_parent_id"
,
unique:
true
,
using: :btree
add_index
"namespaces"
,
[
"name"
],
name:
"index_namespaces_on_name"
,
unique:
true
,
using: :btree
add_index
"namespaces"
,
[
"name"
],
name:
"index_namespaces_on_name_trigram"
,
using: :gin
,
opclasses:
{
"name"
=>
"gin_trgm_ops"
}
add_index
"namespaces"
,
[
"owner_id"
],
name:
"index_namespaces_on_owner_id"
,
using: :btree
add_index
"namespaces"
,
[
"parent_id"
,
"id"
],
name:
"index_namespaces_on_parent_id_and_id"
,
unique:
true
,
using: :btree
...
...
@@ -1040,6 +1050,8 @@ ActiveRecord::Schema.define(version: 20170106172224) do
t
.
integer
"repository_size"
,
limit:
8
,
default:
0
,
null:
false
t
.
integer
"lfs_objects_size"
,
limit:
8
,
default:
0
,
null:
false
t
.
integer
"build_artifacts_size"
,
limit:
8
,
default:
0
,
null:
false
t
.
integer
"shared_runners_minutes"
,
limit:
8
,
default:
0
,
null:
false
t
.
datetime
"shared_runners_minutes_last_reset"
end
add_index
"project_statistics"
,
[
"namespace_id"
],
name:
"index_project_statistics_on_namespace_id"
,
using: :btree
...
...
@@ -1497,13 +1509,14 @@ ActiveRecord::Schema.define(version: 20170106172224) do
add_foreign_key
"merge_request_metrics"
,
"merge_requests"
,
on_delete: :cascade
add_foreign_key
"merge_requests_closing_issues"
,
"issues"
,
on_delete: :cascade
add_foreign_key
"merge_requests_closing_issues"
,
"merge_requests"
,
on_delete: :cascade
add_foreign_key
"namespace_statistics"
,
"namespaces"
,
on_delete: :cascade
add_foreign_key
"path_locks"
,
"projects"
add_foreign_key
"path_locks"
,
"users"
add_foreign_key
"personal_access_tokens"
,
"users"
add_foreign_key
"project_authorizations"
,
"projects"
,
on_delete: :cascade
add_foreign_key
"project_authorizations"
,
"users"
,
on_delete: :cascade
add_foreign_key
"protected_branch_merge_access_levels"
,
"namespaces"
,
column:
"group_id"
add_foreign_key
"project_statistics"
,
"projects"
,
on_delete: :cascade
add_foreign_key
"protected_branch_merge_access_levels"
,
"namespaces"
,
column:
"group_id"
add_foreign_key
"protected_branch_merge_access_levels"
,
"protected_branches"
add_foreign_key
"protected_branch_merge_access_levels"
,
"users"
add_foreign_key
"protected_branch_push_access_levels"
,
"namespaces"
,
column:
"group_id"
...
...
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