Commit a66d9b4c768d9ed2e0096645fb2b4f61c222283d
1 parent
32aa2e3f
Exists in
master
and in
4 other branches
annotate model
Showing
8 changed files
with
68 additions
and
34 deletions
Show diff stats
app/models/issue.rb
app/models/merge_request.rb
... | ... | @@ -44,3 +44,19 @@ class MergeRequest < ActiveRecord::Base |
44 | 44 | project.commit(source_branch) |
45 | 45 | end |
46 | 46 | end |
47 | +# == Schema Information | |
48 | +# | |
49 | +# Table name: merge_requests | |
50 | +# | |
51 | +# id :integer not null, primary key | |
52 | +# target_branch :string(255) not null | |
53 | +# source_branch :string(255) not null | |
54 | +# project_id :integer not null | |
55 | +# author_id :integer | |
56 | +# assignee_id :integer | |
57 | +# title :string(255) | |
58 | +# closed :boolean default(FALSE), not null | |
59 | +# created_at :datetime | |
60 | +# updated_at :datetime | |
61 | +# | |
62 | + | ... | ... |
app/models/project.rb
... | ... | @@ -247,14 +247,15 @@ end |
247 | 247 | # |
248 | 248 | # Table name: projects |
249 | 249 | # |
250 | -# id :integer not null, primary key | |
251 | -# name :string(255) | |
252 | -# path :string(255) | |
253 | -# description :text | |
254 | -# created_at :datetime | |
255 | -# updated_at :datetime | |
256 | -# private_flag :boolean default(TRUE), not null | |
257 | -# code :string(255) | |
258 | -# owner_id :integer | |
250 | +# id :integer not null, primary key | |
251 | +# name :string(255) | |
252 | +# path :string(255) | |
253 | +# description :text | |
254 | +# created_at :datetime | |
255 | +# updated_at :datetime | |
256 | +# private_flag :boolean default(TRUE), not null | |
257 | +# code :string(255) | |
258 | +# owner_id :integer | |
259 | +# default_branch :string(255) default("master"), not null | |
259 | 260 | # |
260 | 261 | ... | ... |
app/models/users_project.rb
... | ... | @@ -23,13 +23,12 @@ end |
23 | 23 | # |
24 | 24 | # Table name: users_projects |
25 | 25 | # |
26 | -# id :integer not null, primary key | |
27 | -# user_id :integer not null | |
28 | -# project_id :integer not null | |
29 | -# read :boolean default(FALSE) | |
30 | -# write :boolean default(FALSE) | |
31 | -# admin :boolean default(FALSE) | |
32 | -# created_at :datetime | |
33 | -# updated_at :datetime | |
26 | +# id :integer not null, primary key | |
27 | +# user_id :integer not null | |
28 | +# project_id :integer not null | |
29 | +# created_at :datetime | |
30 | +# updated_at :datetime | |
31 | +# repo_access :integer default(0), not null | |
32 | +# project_access :integer default(0), not null | |
34 | 33 | # |
35 | 34 | ... | ... |
spec/models/issue_spec.rb
spec/models/merge_request_spec.rb
... | ... | @@ -26,3 +26,19 @@ describe MergeRequest do |
26 | 26 | :assignee => Factory(:user), |
27 | 27 | :project => Factory.create(:project)).should be_valid } |
28 | 28 | end |
29 | +# == Schema Information | |
30 | +# | |
31 | +# Table name: merge_requests | |
32 | +# | |
33 | +# id :integer not null, primary key | |
34 | +# target_branch :string(255) not null | |
35 | +# source_branch :string(255) not null | |
36 | +# project_id :integer not null | |
37 | +# author_id :integer | |
38 | +# assignee_id :integer | |
39 | +# title :string(255) | |
40 | +# closed :boolean default(FALSE), not null | |
41 | +# created_at :datetime | |
42 | +# updated_at :datetime | |
43 | +# | |
44 | + | ... | ... |
spec/models/project_spec.rb
... | ... | @@ -168,14 +168,15 @@ end |
168 | 168 | # |
169 | 169 | # Table name: projects |
170 | 170 | # |
171 | -# id :integer not null, primary key | |
172 | -# name :string(255) | |
173 | -# path :string(255) | |
174 | -# description :text | |
175 | -# created_at :datetime | |
176 | -# updated_at :datetime | |
177 | -# private_flag :boolean default(TRUE), not null | |
178 | -# code :string(255) | |
179 | -# owner_id :integer | |
171 | +# id :integer not null, primary key | |
172 | +# name :string(255) | |
173 | +# path :string(255) | |
174 | +# description :text | |
175 | +# created_at :datetime | |
176 | +# updated_at :datetime | |
177 | +# private_flag :boolean default(TRUE), not null | |
178 | +# code :string(255) | |
179 | +# owner_id :integer | |
180 | +# default_branch :string(255) default("master"), not null | |
180 | 181 | # |
181 | 182 | ... | ... |
spec/models/users_project_spec.rb
... | ... | @@ -20,13 +20,12 @@ end |
20 | 20 | # |
21 | 21 | # Table name: users_projects |
22 | 22 | # |
23 | -# id :integer not null, primary key | |
24 | -# user_id :integer not null | |
25 | -# project_id :integer not null | |
26 | -# read :boolean default(FALSE) | |
27 | -# write :boolean default(FALSE) | |
28 | -# admin :boolean default(FALSE) | |
29 | -# created_at :datetime | |
30 | -# updated_at :datetime | |
23 | +# id :integer not null, primary key | |
24 | +# user_id :integer not null | |
25 | +# project_id :integer not null | |
26 | +# created_at :datetime | |
27 | +# updated_at :datetime | |
28 | +# repo_access :integer default(0), not null | |
29 | +# project_access :integer default(0), not null | |
31 | 30 | # |
32 | 31 | ... | ... |