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
0
Merge Requests
0
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
iv
gitlab-ce
Commits
69c8231b
Commit
69c8231b
authored
Dec 19, 2012
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
index for commit_id. Schema rebuiled. Non rollback migration exception added
parent
96af55bb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
13 deletions
+20
-13
db/migrate/20121218164840_move_noteable_commit_to_own_field.rb
...grate/20121218164840_move_noteable_commit_to_own_field.rb
+1
-2
db/migrate/20121219095402_indices_for_notes.rb
db/migrate/20121219095402_indices_for_notes.rb
+6
-0
db/schema.rb
db/schema.rb
+13
-11
No files found.
db/migrate/20121218164840_move_noteable_commit_to_own_field.rb
View file @
69c8231b
...
...
@@ -15,7 +15,6 @@ class MoveNoteableCommitToOwnField < ActiveRecord::Migration
end
def
down
remove_column
:notes
,
:commit_id
remove_column
:notes
,
:new_noteable_id
raise
ActiveRecord
::
IrreversibleMigration
end
end
db/migrate/20121219095402_indices_for_notes.rb
0 → 100644
View file @
69c8231b
class
IndicesForNotes
<
ActiveRecord
::
Migration
def
change
add_index
:notes
,
:commit_id
add_index
:notes
,
[
:project_id
,
:noteable_type
]
end
end
db/schema.rb
View file @
69c8231b
...
...
@@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
:version
=>
2012121
8164840
)
do
ActiveRecord
::
Schema
.
define
(
:version
=>
2012121
9095402
)
do
create_table
"events"
,
:force
=>
true
do
|
t
|
t
.
string
"target_type"
...
...
@@ -69,19 +69,19 @@ ActiveRecord::Schema.define(:version => 20121218164840) do
add_index
"keys"
,
[
"user_id"
],
:name
=>
"index_keys_on_user_id"
create_table
"merge_requests"
,
:force
=>
true
do
|
t
|
t
.
string
"target_branch"
,
:null
=>
false
t
.
string
"source_branch"
,
:null
=>
false
t
.
integer
"project_id"
,
:null
=>
false
t
.
string
"target_branch"
,
:null
=>
false
t
.
string
"source_branch"
,
:null
=>
false
t
.
integer
"project_id"
,
:null
=>
false
t
.
integer
"author_id"
t
.
integer
"assignee_id"
t
.
string
"title"
t
.
boolean
"closed"
,
:default
=>
false
,
:null
=>
false
t
.
datetime
"created_at"
,
:null
=>
false
t
.
datetime
"updated_at"
,
:null
=>
false
t
.
text
"st_commits"
t
.
text
"st_diffs"
t
.
boolean
"merged"
,
:default
=>
false
,
:null
=>
false
t
.
integer
"state"
,
:default
=>
1
,
:null
=>
false
t
.
boolean
"closed"
,
:default
=>
false
,
:null
=>
false
t
.
datetime
"created_at"
,
:null
=>
false
t
.
datetime
"updated_at"
,
:null
=>
false
t
.
text
"st_commits"
,
:limit
=>
2147483647
t
.
text
"st_diffs"
,
:limit
=>
2147483647
t
.
boolean
"merged"
,
:default
=>
false
,
:null
=>
false
t
.
integer
"state"
,
:default
=>
1
,
:null
=>
false
t
.
integer
"milestone_id"
end
...
...
@@ -135,8 +135,10 @@ ActiveRecord::Schema.define(:version => 20121218164840) do
t
.
integer
"noteable_id"
end
add_index
"notes"
,
[
"commit_id"
],
:name
=>
"index_notes_on_commit_id"
add_index
"notes"
,
[
"created_at"
],
:name
=>
"index_notes_on_created_at"
add_index
"notes"
,
[
"noteable_type"
],
:name
=>
"index_notes_on_noteable_type"
add_index
"notes"
,
[
"project_id"
,
"noteable_type"
],
:name
=>
"index_notes_on_project_id_and_noteable_type"
add_index
"notes"
,
[
"project_id"
],
:name
=>
"index_notes_on_project_id"
create_table
"projects"
,
:force
=>
true
do
|
t
|
...
...
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