Commit 21b1fee92c9d860281712ed97cf724e6d5d3fe76
1 parent
2a04341f
Exists in
master
and in
4 other branches
reannotated
Showing
17 changed files
with
56 additions
and
49 deletions
Show diff stats
app/models/group.rb
... | ... | @@ -4,12 +4,12 @@ |
4 | 4 | # |
5 | 5 | # id :integer not null, primary key |
6 | 6 | # name :string(255) not null |
7 | -# description :string(255) not null | |
8 | 7 | # path :string(255) not null |
9 | 8 | # owner_id :integer not null |
10 | 9 | # created_at :datetime not null |
11 | 10 | # updated_at :datetime not null |
12 | 11 | # type :string(255) |
12 | +# description :string(255) default(""), not null | |
13 | 13 | # |
14 | 14 | |
15 | 15 | class Group < Namespace | ... | ... |
app/models/issue.rb
... | ... | @@ -9,11 +9,11 @@ |
9 | 9 | # project_id :integer |
10 | 10 | # created_at :datetime not null |
11 | 11 | # updated_at :datetime not null |
12 | -# state :string default(FALSE), not null | |
13 | 12 | # position :integer default(0) |
14 | 13 | # branch_name :string(255) |
15 | 14 | # description :text |
16 | 15 | # milestone_id :integer |
16 | +# state :string(255) | |
17 | 17 | # |
18 | 18 | |
19 | 19 | class Issue < ActiveRecord::Base | ... | ... |
app/models/merge_request.rb
... | ... | @@ -9,14 +9,14 @@ |
9 | 9 | # author_id :integer |
10 | 10 | # assignee_id :integer |
11 | 11 | # title :string(255) |
12 | -# state :string(255) not null | |
13 | 12 | # created_at :datetime not null |
14 | 13 | # updated_at :datetime not null |
15 | 14 | # st_commits :text(2147483647) |
16 | 15 | # st_diffs :text(2147483647) |
17 | -# merge_status :integer default(1), not null | |
18 | -# | |
19 | 16 | # milestone_id :integer |
17 | +# state :string(255) | |
18 | +# merge_status :string(255) | |
19 | +# | |
20 | 20 | |
21 | 21 | require Rails.root.join("app/models/commit") |
22 | 22 | require Rails.root.join("lib/static_model") | ... | ... |
app/models/milestone.rb
... | ... | @@ -7,9 +7,9 @@ |
7 | 7 | # project_id :integer not null |
8 | 8 | # description :text |
9 | 9 | # due_date :date |
10 | -# closed :boolean default(FALSE), not null | |
11 | 10 | # created_at :datetime not null |
12 | 11 | # updated_at :datetime not null |
12 | +# state :string(255) | |
13 | 13 | # |
14 | 14 | |
15 | 15 | class Milestone < ActiveRecord::Base | ... | ... |
app/models/namespace.rb
... | ... | @@ -4,12 +4,12 @@ |
4 | 4 | # |
5 | 5 | # id :integer not null, primary key |
6 | 6 | # name :string(255) not null |
7 | -# description :string(255) not null | |
8 | 7 | # path :string(255) not null |
9 | 8 | # owner_id :integer not null |
10 | 9 | # created_at :datetime not null |
11 | 10 | # updated_at :datetime not null |
12 | 11 | # type :string(255) |
12 | +# description :string(255) default(""), not null | |
13 | 13 | # |
14 | 14 | |
15 | 15 | class Namespace < ActiveRecord::Base | ... | ... |
app/models/project.rb
... | ... | @@ -11,12 +11,13 @@ |
11 | 11 | # creator_id :integer |
12 | 12 | # default_branch :string(255) |
13 | 13 | # issues_enabled :boolean default(TRUE), not null |
14 | -# issues_tracker :string not null | |
15 | 14 | # wall_enabled :boolean default(TRUE), not null |
16 | 15 | # merge_requests_enabled :boolean default(TRUE), not null |
17 | 16 | # wiki_enabled :boolean default(TRUE), not null |
18 | 17 | # namespace_id :integer |
19 | 18 | # public :boolean default(FALSE), not null |
19 | +# issues_tracker :string(255) default("gitlab"), not null | |
20 | +# issues_tracker_id :string(255) | |
20 | 21 | # |
21 | 22 | |
22 | 23 | require "grit" | ... | ... |
app/models/user.rb
... | ... | @@ -22,10 +22,8 @@ |
22 | 22 | # linkedin :string(255) default(""), not null |
23 | 23 | # twitter :string(255) default(""), not null |
24 | 24 | # authentication_token :string(255) |
25 | -# dark_scheme :boolean default(FALSE), not null | |
26 | 25 | # theme_id :integer default(1), not null |
27 | 26 | # bio :string(255) |
28 | -# state :string(255) | |
29 | 27 | # failed_attempts :integer default(0) |
30 | 28 | # locked_at :datetime |
31 | 29 | # extern_uid :string(255) |
... | ... | @@ -33,6 +31,8 @@ |
33 | 31 | # username :string(255) |
34 | 32 | # can_create_group :boolean default(TRUE), not null |
35 | 33 | # can_create_team :boolean default(TRUE), not null |
34 | +# state :string(255) | |
35 | +# color_scheme_id :integer default(1), not null | |
36 | 36 | # |
37 | 37 | |
38 | 38 | class User < ActiveRecord::Base | ... | ... |
app/models/user_team.rb
... | ... | @@ -2,12 +2,13 @@ |
2 | 2 | # |
3 | 3 | # Table name: user_teams |
4 | 4 | # |
5 | -# id :integer not null, primary key | |
6 | -# name :string(255) | |
7 | -# path :string(255) | |
8 | -# owner_id :integer | |
9 | -# created_at :datetime not null | |
10 | -# updated_at :datetime not null | |
5 | +# id :integer not null, primary key | |
6 | +# name :string(255) | |
7 | +# path :string(255) | |
8 | +# owner_id :integer | |
9 | +# created_at :datetime not null | |
10 | +# updated_at :datetime not null | |
11 | +# description :string(255) default(""), not null | |
11 | 12 | # |
12 | 13 | |
13 | 14 | class UserTeam < ActiveRecord::Base | ... | ... |
spec/factories/user_teams.rb
... | ... | @@ -2,12 +2,13 @@ |
2 | 2 | # |
3 | 3 | # Table name: user_teams |
4 | 4 | # |
5 | -# id :integer not null, primary key | |
6 | -# name :string(255) | |
7 | -# path :string(255) | |
8 | -# owner_id :integer | |
9 | -# created_at :datetime not null | |
10 | -# updated_at :datetime not null | |
5 | +# id :integer not null, primary key | |
6 | +# name :string(255) | |
7 | +# path :string(255) | |
8 | +# owner_id :integer | |
9 | +# created_at :datetime not null | |
10 | +# updated_at :datetime not null | |
11 | +# description :string(255) default(""), not null | |
11 | 12 | # |
12 | 13 | |
13 | 14 | # Read about factories at https://github.com/thoughtbot/factory_girl | ... | ... |
spec/models/group_spec.rb
... | ... | @@ -2,13 +2,14 @@ |
2 | 2 | # |
3 | 3 | # Table name: namespaces |
4 | 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) | |
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 | +# description :string(255) default(""), not null | |
12 | 13 | # |
13 | 14 | |
14 | 15 | require 'spec_helper' | ... | ... |
spec/models/issue_spec.rb
... | ... | @@ -9,11 +9,11 @@ |
9 | 9 | # project_id :integer |
10 | 10 | # created_at :datetime not null |
11 | 11 | # updated_at :datetime not null |
12 | -# state :string default(FALSE), not null | |
13 | 12 | # position :integer default(0) |
14 | 13 | # branch_name :string(255) |
15 | 14 | # description :text |
16 | 15 | # milestone_id :integer |
16 | +# state :string(255) | |
17 | 17 | # |
18 | 18 | |
19 | 19 | require 'spec_helper' | ... | ... |
spec/models/merge_request_spec.rb
... | ... | @@ -9,14 +9,13 @@ |
9 | 9 | # author_id :integer |
10 | 10 | # assignee_id :integer |
11 | 11 | # title :string(255) |
12 | -# closed :boolean default(FALSE), not null | |
13 | 12 | # created_at :datetime not null |
14 | 13 | # updated_at :datetime not null |
15 | 14 | # st_commits :text(2147483647) |
16 | 15 | # st_diffs :text(2147483647) |
17 | -# merged :boolean default(FALSE), not null | |
18 | -# merge_status :integer default(1), not null | |
19 | 16 | # milestone_id :integer |
17 | +# state :string(255) | |
18 | +# merge_status :string(255) | |
20 | 19 | # |
21 | 20 | |
22 | 21 | require 'spec_helper' | ... | ... |
spec/models/milestone_spec.rb
spec/models/namespace_spec.rb
... | ... | @@ -2,13 +2,14 @@ |
2 | 2 | # |
3 | 3 | # Table name: namespaces |
4 | 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) | |
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 | +# description :string(255) default(""), not null | |
12 | 13 | # |
13 | 14 | |
14 | 15 | require 'spec_helper' | ... | ... |
spec/models/project_spec.rb
... | ... | @@ -16,6 +16,8 @@ |
16 | 16 | # wiki_enabled :boolean default(TRUE), not null |
17 | 17 | # namespace_id :integer |
18 | 18 | # public :boolean default(FALSE), not null |
19 | +# issues_tracker :string(255) default("gitlab"), not null | |
20 | +# issues_tracker_id :string(255) | |
19 | 21 | # |
20 | 22 | |
21 | 23 | require 'spec_helper' | ... | ... |
spec/models/user_spec.rb
... | ... | @@ -22,10 +22,8 @@ |
22 | 22 | # linkedin :string(255) default(""), not null |
23 | 23 | # twitter :string(255) default(""), not null |
24 | 24 | # authentication_token :string(255) |
25 | -# dark_scheme :boolean default(FALSE), not null | |
26 | 25 | # theme_id :integer default(1), not null |
27 | 26 | # bio :string(255) |
28 | -# state :string(255) default(FALSE), not null | |
29 | 27 | # failed_attempts :integer default(0) |
30 | 28 | # locked_at :datetime |
31 | 29 | # extern_uid :string(255) |
... | ... | @@ -33,6 +31,8 @@ |
33 | 31 | # username :string(255) |
34 | 32 | # can_create_group :boolean default(TRUE), not null |
35 | 33 | # can_create_team :boolean default(TRUE), not null |
34 | +# state :string(255) | |
35 | +# color_scheme_id :integer default(1), not null | |
36 | 36 | # |
37 | 37 | |
38 | 38 | require 'spec_helper' | ... | ... |
spec/models/user_team_spec.rb
... | ... | @@ -2,12 +2,13 @@ |
2 | 2 | # |
3 | 3 | # Table name: user_teams |
4 | 4 | # |
5 | -# id :integer not null, primary key | |
6 | -# name :string(255) | |
7 | -# path :string(255) | |
8 | -# owner_id :integer | |
9 | -# created_at :datetime not null | |
10 | -# updated_at :datetime not null | |
5 | +# id :integer not null, primary key | |
6 | +# name :string(255) | |
7 | +# path :string(255) | |
8 | +# owner_id :integer | |
9 | +# created_at :datetime not null | |
10 | +# updated_at :datetime not null | |
11 | +# description :string(255) default(""), not null | |
11 | 12 | # |
12 | 13 | |
13 | 14 | require 'spec_helper' | ... | ... |