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
Kazuhiko Shiozaki
gitlab-ce
Commits
65c470e8
Commit
65c470e8
authored
Nov 24, 2012
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reannotated
parent
3f1d6d6a
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
40 additions
and
8 deletions
+40
-8
app/models/group.rb
app/models/group.rb
+3
-2
app/models/namespace.rb
app/models/namespace.rb
+13
-0
app/models/project.rb
app/models/project.rb
+1
-2
app/models/user.rb
app/models/user.rb
+1
-0
spec/models/group_spec.rb
spec/models/group_spec.rb
+3
-2
spec/models/namespace_spec.rb
spec/models/namespace_spec.rb
+13
-0
spec/models/project_spec.rb
spec/models/project_spec.rb
+1
-2
spec/models/user_spec.rb
spec/models/user_spec.rb
+1
-0
spec/support/namespaces_stub.rb
spec/support/namespaces_stub.rb
+4
-0
No files found.
app/models/group.rb
View file @
65c470e8
# == Schema Information
# == Schema Information
#
#
# Table name:
group
s
# Table name:
namespace
s
#
#
# id :integer not null, primary key
# id :integer not null, primary key
# name :string(255) not null
# name :string(255) not null
#
code
:string(255) not null
#
path
:string(255) not null
# owner_id :integer not null
# owner_id :integer not null
# created_at :datetime not null
# created_at :datetime not null
# updated_at :datetime not null
# updated_at :datetime not null
# type :string(255)
#
#
class
Group
<
Namespace
class
Group
<
Namespace
...
...
app/models/namespace.rb
View file @
65c470e8
# == Schema Information
#
# Table name: namespaces
#
# id :integer not null, primary key
# name :string(255) not null
# path :string(255) not null
# owner_id :integer not null
# created_at :datetime not null
# updated_at :datetime not null
# type :string(255)
#
class
Namespace
<
ActiveRecord
::
Base
class
Namespace
<
ActiveRecord
::
Base
attr_accessible
:name
,
:path
attr_accessible
:name
,
:path
...
...
app/models/project.rb
View file @
65c470e8
...
@@ -9,14 +9,13 @@
...
@@ -9,14 +9,13 @@
# created_at :datetime not null
# created_at :datetime not null
# updated_at :datetime not null
# updated_at :datetime not null
# private_flag :boolean default(TRUE), not null
# private_flag :boolean default(TRUE), not null
# code :string(255)
# owner_id :integer
# owner_id :integer
# default_branch :string(255)
# default_branch :string(255)
# issues_enabled :boolean default(TRUE), not null
# issues_enabled :boolean default(TRUE), not null
# wall_enabled :boolean default(TRUE), not null
# wall_enabled :boolean default(TRUE), not null
# merge_requests_enabled :boolean default(TRUE), not null
# merge_requests_enabled :boolean default(TRUE), not null
# wiki_enabled :boolean default(TRUE), not null
# wiki_enabled :boolean default(TRUE), not null
#
group_id
:integer
#
namespace_id
:integer
#
#
require
"grit"
require
"grit"
...
...
app/models/user.rb
View file @
65c470e8
...
@@ -30,6 +30,7 @@
...
@@ -30,6 +30,7 @@
# locked_at :datetime
# locked_at :datetime
# extern_uid :string(255)
# extern_uid :string(255)
# provider :string(255)
# provider :string(255)
# username :string(255)
#
#
class
User
<
ActiveRecord
::
Base
class
User
<
ActiveRecord
::
Base
...
...
spec/models/group_spec.rb
View file @
65c470e8
# == Schema Information
# == Schema Information
#
#
# Table name:
group
s
# Table name:
namespace
s
#
#
# id :integer not null, primary key
# id :integer not null, primary key
# name :string(255) not null
# name :string(255) not null
#
code
:string(255) not null
#
path
:string(255) not null
# owner_id :integer not null
# owner_id :integer not null
# created_at :datetime not null
# created_at :datetime not null
# updated_at :datetime not null
# updated_at :datetime not null
# type :string(255)
#
#
require
'spec_helper'
require
'spec_helper'
...
...
spec/models/namespace_spec.rb
View file @
65c470e8
# == Schema Information
#
# Table name: namespaces
#
# id :integer not null, primary key
# name :string(255) not null
# path :string(255) not null
# owner_id :integer not null
# created_at :datetime not null
# updated_at :datetime not null
# type :string(255)
#
require
'spec_helper'
require
'spec_helper'
describe
Namespace
do
describe
Namespace
do
...
...
spec/models/project_spec.rb
View file @
65c470e8
...
@@ -9,14 +9,13 @@
...
@@ -9,14 +9,13 @@
# created_at :datetime not null
# created_at :datetime not null
# updated_at :datetime not null
# updated_at :datetime not null
# private_flag :boolean default(TRUE), not null
# private_flag :boolean default(TRUE), not null
# code :string(255)
# owner_id :integer
# owner_id :integer
# default_branch :string(255)
# default_branch :string(255)
# issues_enabled :boolean default(TRUE), not null
# issues_enabled :boolean default(TRUE), not null
# wall_enabled :boolean default(TRUE), not null
# wall_enabled :boolean default(TRUE), not null
# merge_requests_enabled :boolean default(TRUE), not null
# merge_requests_enabled :boolean default(TRUE), not null
# wiki_enabled :boolean default(TRUE), not null
# wiki_enabled :boolean default(TRUE), not null
#
group_id
:integer
#
namespace_id
:integer
#
#
require
'spec_helper'
require
'spec_helper'
...
...
spec/models/user_spec.rb
View file @
65c470e8
...
@@ -30,6 +30,7 @@
...
@@ -30,6 +30,7 @@
# locked_at :datetime
# locked_at :datetime
# extern_uid :string(255)
# extern_uid :string(255)
# provider :string(255)
# provider :string(255)
# username :string(255)
#
#
require
'spec_helper'
require
'spec_helper'
...
...
spec/support/namespaces_stub.rb
View file @
65c470e8
...
@@ -5,6 +5,10 @@ class Namespace
...
@@ -5,6 +5,10 @@ class Namespace
def
ensure_dir_exist
def
ensure_dir_exist
true
true
end
end
def
move_dir
true
end
end
end
class
Gitlab::ProjectMover
class
Gitlab::ProjectMover
...
...
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