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
cf6688fd
Commit
cf6688fd
authored
Jun 23, 2017
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename columns on the geo_repository_renamed_events table
parent
04546422
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
app/models/geo/repository_renamed_event.rb
app/models/geo/repository_renamed_event.rb
+1
-1
db/migrate/20170623195236_create_geo_repository_renamed_events.rb
...te/20170623195236_create_geo_repository_renamed_events.rb
+2
-2
db/schema.rb
db/schema.rb
+2
-2
No files found.
app/models/geo/repository_renamed_event.rb
View file @
cf6688fd
...
@@ -5,7 +5,7 @@ module Geo
...
@@ -5,7 +5,7 @@ module Geo
belongs_to
:project
belongs_to
:project
validates
:project
,
:repository_storage_name
,
:repository_storage_path
,
validates
:project
,
:repository_storage_name
,
:repository_storage_path
,
:old_
path_with_namespace
,
:new
_path_with_namespace
,
:old_
repo_path_with_namespace
,
:new_repo
_path_with_namespace
,
:old_wiki_path_with_namespace
,
:new_wiki_path_with_namespace
,
:old_wiki_path_with_namespace
,
:new_wiki_path_with_namespace
,
:old_project_name
,
:new_project_name
,
presence:
true
:old_project_name
,
:new_project_name
,
presence:
true
end
end
...
...
db/migrate/20170623195236_create_geo_repository_renamed_events.rb
View file @
cf6688fd
...
@@ -8,8 +8,8 @@ class CreateGeoRepositoryRenamedEvents < ActiveRecord::Migration
...
@@ -8,8 +8,8 @@ class CreateGeoRepositoryRenamedEvents < ActiveRecord::Migration
t
.
references
:project
,
index:
true
,
foreign_key:
{
on_delete: :cascade
},
null:
false
t
.
references
:project
,
index:
true
,
foreign_key:
{
on_delete: :cascade
},
null:
false
t
.
text
:repository_storage_name
,
null:
false
t
.
text
:repository_storage_name
,
null:
false
t
.
text
:repository_storage_path
,
null:
false
t
.
text
:repository_storage_path
,
null:
false
t
.
text
:old_path_with_namespace
,
null:
false
t
.
text
:old_
repo_
path_with_namespace
,
null:
false
t
.
text
:new_path_with_namespace
,
null:
false
t
.
text
:new_
repo_
path_with_namespace
,
null:
false
t
.
text
:old_wiki_path_with_namespace
,
null:
false
t
.
text
:old_wiki_path_with_namespace
,
null:
false
t
.
text
:new_wiki_path_with_namespace
,
null:
false
t
.
text
:new_wiki_path_with_namespace
,
null:
false
t
.
text
:old_project_name
,
null:
false
t
.
text
:old_project_name
,
null:
false
...
...
db/schema.rb
View file @
cf6688fd
...
@@ -629,8 +629,8 @@ ActiveRecord::Schema.define(version: 20170627211700) do
...
@@ -629,8 +629,8 @@ ActiveRecord::Schema.define(version: 20170627211700) do
t
.
integer
"project_id"
,
null:
false
t
.
integer
"project_id"
,
null:
false
t
.
text
"repository_storage_name"
,
null:
false
t
.
text
"repository_storage_name"
,
null:
false
t
.
text
"repository_storage_path"
,
null:
false
t
.
text
"repository_storage_path"
,
null:
false
t
.
text
"old_path_with_namespace"
,
null:
false
t
.
text
"old_
repo_
path_with_namespace"
,
null:
false
t
.
text
"new_path_with_namespace"
,
null:
false
t
.
text
"new_
repo_
path_with_namespace"
,
null:
false
t
.
text
"old_wiki_path_with_namespace"
,
null:
false
t
.
text
"old_wiki_path_with_namespace"
,
null:
false
t
.
text
"new_wiki_path_with_namespace"
,
null:
false
t
.
text
"new_wiki_path_with_namespace"
,
null:
false
t
.
text
"old_project_name"
,
null:
false
t
.
text
"old_project_name"
,
null:
false
...
...
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