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
66e1fe6e
Commit
66e1fe6e
authored
Mar 06, 2017
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add project_registry to the list of uncountables
parent
fdb4b1b9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
4 deletions
+19
-4
config/initializers/inflections.rb
config/initializers/inflections.rb
+1
-1
db_geo/migrate/20170206203234_create_project_registry.rb
db_geo/migrate/20170206203234_create_project_registry.rb
+1
-1
db_geo/migrate/20170302005747_add_index_to_project_id_on_project_registry.rb
...0302005747_add_index_to_project_id_on_project_registry.rb
+15
-0
db_geo/schema.rb
db_geo/schema.rb
+2
-2
No files found.
config/initializers/inflections.rb
View file @
66e1fe6e
...
...
@@ -10,6 +10,6 @@
# end
#
ActiveSupport
::
Inflector
.
inflections
do
|
inflect
|
inflect
.
uncountable
%w(award_emoji project_statistics)
inflect
.
uncountable
%w(award_emoji project_statistics
project_registry
)
inflect
.
acronym
'EE'
end
db_geo/migrate/20170206203234_create_project_registry.rb
View file @
66e1fe6e
class
CreateProjectRegistry
<
ActiveRecord
::
Migration
def
change
create_table
:project_registr
ies
do
|
t
|
create_table
:project_registr
y
do
|
t
|
t
.
integer
:project_id
,
null:
false
t
.
datetime
:last_repository_synced_at
t
.
datetime
:last_repository_successful_sync_at
...
...
db_geo/migrate/20170302005747_add_index_to_project_id_on_project_registr
ies
.rb
→
db_geo/migrate/20170302005747_add_index_to_project_id_on_project_registr
y
.rb
View file @
66e1fe6e
class
AddIndexToProjectIdOnProjectRegistr
ies
<
ActiveRecord
::
Migration
class
AddIndexToProjectIdOnProjectRegistr
y
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
...
...
@@ -6,10 +6,10 @@ class AddIndexToProjectIdOnProjectRegistries < ActiveRecord::Migration
disable_ddl_transaction!
def
up
add_concurrent_index
:project_registr
ies
,
:project_id
add_concurrent_index
:project_registr
y
,
:project_id
end
def
down
remove_index
:project_registr
ies
,
:project_id
remove_index
:project_registr
y
,
:project_id
end
end
db_geo/schema.rb
View file @
66e1fe6e
...
...
@@ -15,12 +15,12 @@ ActiveRecord::Schema.define(version: 20170302005747) do
# These are extensions that must be enabled in order to support this database
enable_extension
"plpgsql"
create_table
"project_registr
ies
"
,
force: :cascade
do
|
t
|
create_table
"project_registr
y
"
,
force: :cascade
do
|
t
|
t
.
integer
"project_id"
,
null:
false
t
.
datetime
"last_repository_synced_at"
t
.
datetime
"last_repository_successful_sync_at"
t
.
datetime
"created_at"
,
null:
false
end
add_index
"project_registr
ies"
,
[
"project_id"
],
name:
"index_project_registries
_on_project_id"
,
using: :btree
add_index
"project_registr
y"
,
[
"project_id"
],
name:
"index_project_registry
_on_project_id"
,
using: :btree
end
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