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
146e1463
Commit
146e1463
authored
Jun 21, 2017
by
Stan Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use add_timestamps_with_timezone
parent
56d4c28d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
db/migrate/20170614053336_create_geo_repository_deleted_events.rb
...te/20170614053336_create_geo_repository_deleted_events.rb
+1
-1
db/schema.rb
db/schema.rb
+2
-1
No files found.
db/migrate/20170614053336_create_geo_repository_deleted_events.rb
View file @
146e1463
...
...
@@ -7,13 +7,13 @@ class CreateGeoRepositoryDeletedEvents < ActiveRecord::Migration
create_table
:geo_repository_deleted_events
,
id: :bigserial
do
|
t
|
# If a project is deleted, we need to retain this entry
t
.
references
:project
,
index:
true
,
foreign_key:
false
,
null:
false
t
.
datetime
:created_at
,
null:
false
t
.
text
:repository_storage_path
,
null:
false
t
.
text
:deleted_path
,
null:
false
t
.
text
:deleted_wiki_path
t
.
text
:deleted_project_name
,
null:
false
end
add_timestamps_with_timezone
:geo_repository_deleted_events
add_column
:geo_event_log
,
:repository_deleted_event_id
,
:integer
,
limit:
8
end
end
db/schema.rb
View file @
146e1463
...
...
@@ -609,11 +609,12 @@ ActiveRecord::Schema.define(version: 20170614061551) do
create_table
"geo_repository_deleted_events"
,
id: :bigserial
,
force: :cascade
do
|
t
|
t
.
integer
"project_id"
,
null:
false
t
.
datetime
"created_at"
,
null:
false
t
.
text
"repository_storage_path"
,
null:
false
t
.
text
"deleted_path"
,
null:
false
t
.
text
"deleted_wiki_path"
t
.
text
"deleted_project_name"
,
null:
false
t
.
datetime
"created_at"
,
null:
false
t
.
datetime
"updated_at"
,
null:
false
end
add_index
"geo_repository_deleted_events"
,
[
"project_id"
],
name:
"index_geo_repository_deleted_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