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
4a2774d4
Commit
4a2774d4
authored
May 29, 2017
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make event_type column as smallint and move it to the end of the table
parent
ca40ebf1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
db/migrate/20170522194603_create_geo_push_events.rb
db/migrate/20170522194603_create_geo_push_events.rb
+1
-1
db/schema.rb
db/schema.rb
+1
-1
No files found.
db/migrate/20170522194603_create_geo_push_events.rb
View file @
4a2774d4
...
...
@@ -4,8 +4,8 @@ class CreateGeoPushEvents < ActiveRecord::Migration
def
change
create_table
:geo_push_events
do
|
t
|
t
.
references
:project
,
index:
true
,
foreign_key:
{
on_delete: :cascade
},
null:
false
t
.
integer
:event_type
,
index:
true
,
null:
false
t
.
datetime
:created_at
,
null:
false
t
.
integer
:event_type
,
limit:
2
,
index:
true
,
null:
false
end
end
end
db/schema.rb
View file @
4a2774d4
...
...
@@ -530,8 +530,8 @@ ActiveRecord::Schema.define(version: 20170602003304) do
create_table
"geo_push_events"
,
force: :cascade
do
|
t
|
t
.
integer
"project_id"
,
null:
false
t
.
integer
"event_type"
,
null:
false
t
.
datetime
"created_at"
,
null:
false
t
.
integer
"event_type"
,
limit:
2
,
null:
false
end
add_index
"geo_push_events"
,
[
"event_type"
],
name:
"index_geo_push_events_on_event_type"
,
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