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
ea0674fc
Commit
ea0674fc
authored
Jul 26, 2017
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make Rubocop happy
parent
a88ad662
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
app/models/geo/event_log.rb
app/models/geo/event_log.rb
+4
-6
db/migrate/20170717213940_create_geo_node_group_links.rb
db/migrate/20170717213940_create_geo_node_group_links.rb
+3
-1
No files found.
app/models/geo/event_log.rb
View file @
ea0674fc
...
...
@@ -2,6 +2,8 @@ module Geo
class
EventLog
<
ActiveRecord
::
Base
include
Geo
::
Model
delegate
:project_id
,
to: :event
,
allow_nil:
true
belongs_to
:repository_updated_event
,
class_name:
'Geo::RepositoryUpdatedEvent'
,
foreign_key: :repository_updated_event_id
...
...
@@ -19,9 +21,5 @@ module Geo
repository_deleted_event
||
repository_renamed_event
end
def
project_id
event
&
.
project_id
end
end
end
db/migrate/20170717213940_create_geo_node_group_links.rb
View file @
ea0674fc
...
...
@@ -3,6 +3,8 @@ class CreateGeoNodeGroupLinks < ActiveRecord::Migration
DOWNTIME
=
false
disable_ddl_transaction!
def
change
create_table
:geo_node_group_links
do
|
t
|
t
.
references
:geo_node
,
index:
true
,
foreign_key:
{
on_delete: :cascade
},
null:
false
...
...
@@ -11,6 +13,6 @@ class CreateGeoNodeGroupLinks < ActiveRecord::Migration
add_timestamps_with_timezone
:geo_node_group_links
add_foreign_key
:geo_node_group_links
,
:namespaces
,
column: :group_id
,
on_delete: :cascade
add_
concurrent_
foreign_key
:geo_node_group_links
,
:namespaces
,
column: :group_id
,
on_delete: :cascade
end
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