Commit 65c470e84396a9db4b697a45128ce8d28c612d7c
1 parent
3f1d6d6a
Exists in
master
and in
4 other branches
Reannotated
Showing
9 changed files
with
40 additions
and
8 deletions
Show diff stats
app/models/group.rb
1 | 1 | # == Schema Information |
2 | 2 | # |
3 | -# Table name: groups | |
3 | +# Table name: namespaces | |
4 | 4 | # |
5 | 5 | # id :integer not null, primary key |
6 | 6 | # name :string(255) not null |
7 | -# code :string(255) not null | |
7 | +# path :string(255) not null | |
8 | 8 | # owner_id :integer not null |
9 | 9 | # created_at :datetime not null |
10 | 10 | # updated_at :datetime not null |
11 | +# type :string(255) | |
11 | 12 | # |
12 | 13 | |
13 | 14 | class Group < Namespace | ... | ... |
app/models/namespace.rb
1 | +# == Schema Information | |
2 | +# | |
3 | +# Table name: namespaces | |
4 | +# | |
5 | +# id :integer not null, primary key | |
6 | +# name :string(255) not null | |
7 | +# path :string(255) not null | |
8 | +# owner_id :integer not null | |
9 | +# created_at :datetime not null | |
10 | +# updated_at :datetime not null | |
11 | +# type :string(255) | |
12 | +# | |
13 | + | |
1 | 14 | class Namespace < ActiveRecord::Base |
2 | 15 | attr_accessible :name, :path |
3 | 16 | ... | ... |
app/models/project.rb
... | ... | @@ -9,14 +9,13 @@ |
9 | 9 | # created_at :datetime not null |
10 | 10 | # updated_at :datetime not null |
11 | 11 | # private_flag :boolean default(TRUE), not null |
12 | -# code :string(255) | |
13 | 12 | # owner_id :integer |
14 | 13 | # default_branch :string(255) |
15 | 14 | # issues_enabled :boolean default(TRUE), not null |
16 | 15 | # wall_enabled :boolean default(TRUE), not null |
17 | 16 | # merge_requests_enabled :boolean default(TRUE), not null |
18 | 17 | # wiki_enabled :boolean default(TRUE), not null |
19 | -# group_id :integer | |
18 | +# namespace_id :integer | |
20 | 19 | # |
21 | 20 | |
22 | 21 | require "grit" | ... | ... |
app/models/user.rb
spec/models/group_spec.rb
1 | 1 | # == Schema Information |
2 | 2 | # |
3 | -# Table name: groups | |
3 | +# Table name: namespaces | |
4 | 4 | # |
5 | 5 | # id :integer not null, primary key |
6 | 6 | # name :string(255) not null |
7 | -# code :string(255) not null | |
7 | +# path :string(255) not null | |
8 | 8 | # owner_id :integer not null |
9 | 9 | # created_at :datetime not null |
10 | 10 | # updated_at :datetime not null |
11 | +# type :string(255) | |
11 | 12 | # |
12 | 13 | |
13 | 14 | require 'spec_helper' | ... | ... |
spec/models/namespace_spec.rb
1 | +# == Schema Information | |
2 | +# | |
3 | +# Table name: namespaces | |
4 | +# | |
5 | +# id :integer not null, primary key | |
6 | +# name :string(255) not null | |
7 | +# path :string(255) not null | |
8 | +# owner_id :integer not null | |
9 | +# created_at :datetime not null | |
10 | +# updated_at :datetime not null | |
11 | +# type :string(255) | |
12 | +# | |
13 | + | |
1 | 14 | require 'spec_helper' |
2 | 15 | |
3 | 16 | describe Namespace do | ... | ... |
spec/models/project_spec.rb
... | ... | @@ -9,14 +9,13 @@ |
9 | 9 | # created_at :datetime not null |
10 | 10 | # updated_at :datetime not null |
11 | 11 | # private_flag :boolean default(TRUE), not null |
12 | -# code :string(255) | |
13 | 12 | # owner_id :integer |
14 | 13 | # default_branch :string(255) |
15 | 14 | # issues_enabled :boolean default(TRUE), not null |
16 | 15 | # wall_enabled :boolean default(TRUE), not null |
17 | 16 | # merge_requests_enabled :boolean default(TRUE), not null |
18 | 17 | # wiki_enabled :boolean default(TRUE), not null |
19 | -# group_id :integer | |
18 | +# namespace_id :integer | |
20 | 19 | # |
21 | 20 | |
22 | 21 | require 'spec_helper' | ... | ... |
spec/models/user_spec.rb