diff options
author | Valery Sizov <vsv2711@gmail.com> | 2011-12-18 18:09:16 +0400 |
---|---|---|
committer | Valery Sizov <vsv2711@gmail.com> | 2011-12-18 18:09:16 +0400 |
commit | a66d9b4c768d9ed2e0096645fb2b4f61c222283d (patch) | |
tree | 85242a299feb73290171c4c13575507ccdc2fee1 /spec | |
parent | 32aa2e3f24c1b2d1d3f4fa8cfb6334644492ba2a (diff) |
annotate model
Diffstat (limited to 'spec')
-rw-r--r-- | spec/models/issue_spec.rb | 1 | ||||
-rw-r--r-- | spec/models/merge_request_spec.rb | 16 | ||||
-rw-r--r-- | spec/models/project_spec.rb | 19 | ||||
-rw-r--r-- | spec/models/users_project_spec.rb | 15 |
4 files changed, 34 insertions, 17 deletions
diff --git a/spec/models/issue_spec.rb b/spec/models/issue_spec.rb index ac6786333d1..74eb5b93f21 100644 --- a/spec/models/issue_spec.rb +++ b/spec/models/issue_spec.rb @@ -39,5 +39,6 @@ end # closed :boolean default(FALSE), not null # position :integer default(0) # critical :boolean default(FALSE), not null +# branch_name :string(255) # diff --git a/spec/models/merge_request_spec.rb b/spec/models/merge_request_spec.rb index e6868779f42..f6b4cbc8416 100644 --- a/spec/models/merge_request_spec.rb +++ b/spec/models/merge_request_spec.rb @@ -26,3 +26,19 @@ describe MergeRequest do :assignee => Factory(:user), :project => Factory.create(:project)).should be_valid } end +# == Schema Information +# +# Table name: merge_requests +# +# id :integer not null, primary key +# target_branch :string(255) not null +# source_branch :string(255) not null +# project_id :integer not null +# author_id :integer +# assignee_id :integer +# title :string(255) +# closed :boolean default(FALSE), not null +# created_at :datetime +# updated_at :datetime +# + diff --git a/spec/models/project_spec.rb b/spec/models/project_spec.rb index eda20a0c011..a5edc408a1f 100644 --- a/spec/models/project_spec.rb +++ b/spec/models/project_spec.rb @@ -168,14 +168,15 @@ end # # Table name: projects # -# id :integer not null, primary key -# name :string(255) -# path :string(255) -# description :text -# created_at :datetime -# updated_at :datetime -# private_flag :boolean default(TRUE), not null -# code :string(255) -# owner_id :integer +# id :integer not null, primary key +# name :string(255) +# path :string(255) +# description :text +# created_at :datetime +# updated_at :datetime +# private_flag :boolean default(TRUE), not null +# code :string(255) +# owner_id :integer +# default_branch :string(255) default("master"), not null # diff --git a/spec/models/users_project_spec.rb b/spec/models/users_project_spec.rb index c15391619c6..41e36b57204 100644 --- a/spec/models/users_project_spec.rb +++ b/spec/models/users_project_spec.rb @@ -20,13 +20,12 @@ end # # Table name: users_projects # -# id :integer not null, primary key -# user_id :integer not null -# project_id :integer not null -# read :boolean default(FALSE) -# write :boolean default(FALSE) -# admin :boolean default(FALSE) -# created_at :datetime -# updated_at :datetime +# id :integer not null, primary key +# user_id :integer not null +# project_id :integer not null +# created_at :datetime +# updated_at :datetime +# repo_access :integer default(0), not null +# project_access :integer default(0), not null # |