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
d61f2a56
Commit
d61f2a56
authored
Jun 01, 2017
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reorder database columns on create geo_push_events migration
parent
1eef9e4d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
db/migrate/20170522194603_create_geo_push_events.rb
db/migrate/20170522194603_create_geo_push_events.rb
+3
-3
db/schema.rb
db/schema.rb
+3
-3
No files found.
db/migrate/20170522194603_create_geo_push_events.rb
View file @
d61f2a56
...
...
@@ -3,14 +3,14 @@ class CreateGeoPushEvents < ActiveRecord::Migration
def
change
create_table
:geo_push_events
,
id: :bigserial
do
|
t
|
t
.
references
:project
,
index:
true
,
foreign_key:
{
on_delete: :cascade
},
null:
false
t
.
datetime
:created_at
,
null:
false
t
.
string
:ref
t
.
integer
:branches_affected
,
null:
false
t
.
integer
:tags_affected
,
null:
false
t
.
integer
:source
,
limit:
2
,
index:
true
,
null:
false
t
.
references
:project
,
index:
true
,
foreign_key:
{
on_delete: :cascade
},
null:
false
t
.
boolean
:new_branch
,
default:
false
,
null:
false
t
.
boolean
:remove_branch
,
default:
false
,
null:
false
t
.
integer
:source
,
limit:
2
,
index:
true
,
null:
false
t
.
text
:ref
end
end
end
db/schema.rb
View file @
d61f2a56
...
...
@@ -529,14 +529,14 @@ ActiveRecord::Schema.define(version: 20170602003304) do
add_index
"geo_nodes"
,
[
"primary"
],
name:
"index_geo_nodes_on_primary"
,
using: :btree
create_table
"geo_push_events"
,
id: :bigserial
,
force: :cascade
do
|
t
|
t
.
integer
"project_id"
,
null:
false
t
.
datetime
"created_at"
,
null:
false
t
.
string
"ref"
t
.
integer
"branches_affected"
,
null:
false
t
.
integer
"tags_affected"
,
null:
false
t
.
integer
"source"
,
limit:
2
,
null:
false
t
.
integer
"project_id"
,
null:
false
t
.
boolean
"new_branch"
,
default:
false
,
null:
false
t
.
boolean
"remove_branch"
,
default:
false
,
null:
false
t
.
integer
"source"
,
limit:
2
,
null:
false
t
.
text
"ref"
end
add_index
"geo_push_events"
,
[
"project_id"
],
name:
"index_geo_push_events_on_project_id"
,
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