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
8e4625af
Commit
8e4625af
authored
May 06, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove project_id from keys table
parent
b7f1cf9f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
db/migrate/20130506095501_remove_project_id_from_key.rb
db/migrate/20130506095501_remove_project_id_from_key.rb
+9
-0
db/schema.rb
db/schema.rb
+1
-3
No files found.
db/migrate/20130506095501_remove_project_id_from_key.rb
0 → 100644
View file @
8e4625af
class
RemoveProjectIdFromKey
<
ActiveRecord
::
Migration
def
up
remove_column
:keys
,
:project_id
end
def
down
add_column
:keys
,
:project_id
,
:integer
end
end
db/schema.rb
View file @
8e4625af
...
...
@@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
:version
=>
2013050609
0604
)
do
ActiveRecord
::
Schema
.
define
(
:version
=>
2013050609
5501
)
do
create_table
"deploy_keys_projects"
,
:force
=>
true
do
|
t
|
t
.
integer
"deploy_key_id"
,
:null
=>
false
...
...
@@ -76,12 +76,10 @@ ActiveRecord::Schema.define(:version => 20130506090604) do
t
.
text
"key"
t
.
string
"title"
t
.
string
"identifier"
t
.
integer
"project_id"
t
.
string
"type"
end
add_index
"keys"
,
[
"identifier"
],
:name
=>
"index_keys_on_identifier"
add_index
"keys"
,
[
"project_id"
],
:name
=>
"index_keys_on_project_id"
add_index
"keys"
,
[
"user_id"
],
:name
=>
"index_keys_on_user_id"
create_table
"merge_requests"
,
: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