Commit a66d9b4c authored by Valery Sizov's avatar Valery Sizov

annotate model

parent 32aa2e3f
...@@ -59,5 +59,6 @@ end ...@@ -59,5 +59,6 @@ end
# closed :boolean default(FALSE), not null # closed :boolean default(FALSE), not null
# position :integer default(0) # position :integer default(0)
# critical :boolean default(FALSE), not null # critical :boolean default(FALSE), not null
# branch_name :string(255)
# #
...@@ -44,3 +44,19 @@ class MergeRequest < ActiveRecord::Base ...@@ -44,3 +44,19 @@ class MergeRequest < ActiveRecord::Base
project.commit(source_branch) project.commit(source_branch)
end end
end 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
#
...@@ -247,14 +247,15 @@ end ...@@ -247,14 +247,15 @@ end
# #
# Table name: projects # Table name: projects
# #
# id :integer not null, primary key # id :integer not null, primary key
# name :string(255) # name :string(255)
# path :string(255) # path :string(255)
# description :text # description :text
# created_at :datetime # created_at :datetime
# updated_at :datetime # updated_at :datetime
# private_flag :boolean default(TRUE), not null # private_flag :boolean default(TRUE), not null
# code :string(255) # code :string(255)
# owner_id :integer # owner_id :integer
# default_branch :string(255) default("master"), not null
# #
...@@ -23,13 +23,12 @@ end ...@@ -23,13 +23,12 @@ end
# #
# Table name: users_projects # Table name: users_projects
# #
# id :integer not null, primary key # id :integer not null, primary key
# user_id :integer not null # user_id :integer not null
# project_id :integer not null # project_id :integer not null
# read :boolean default(FALSE) # created_at :datetime
# write :boolean default(FALSE) # updated_at :datetime
# admin :boolean default(FALSE) # repo_access :integer default(0), not null
# created_at :datetime # project_access :integer default(0), not null
# updated_at :datetime
# #
...@@ -39,5 +39,6 @@ end ...@@ -39,5 +39,6 @@ end
# closed :boolean default(FALSE), not null # closed :boolean default(FALSE), not null
# position :integer default(0) # position :integer default(0)
# critical :boolean default(FALSE), not null # critical :boolean default(FALSE), not null
# branch_name :string(255)
# #
...@@ -26,3 +26,19 @@ describe MergeRequest do ...@@ -26,3 +26,19 @@ describe MergeRequest do
:assignee => Factory(:user), :assignee => Factory(:user),
:project => Factory.create(:project)).should be_valid } :project => Factory.create(:project)).should be_valid }
end 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
#
...@@ -168,14 +168,15 @@ end ...@@ -168,14 +168,15 @@ end
# #
# Table name: projects # Table name: projects
# #
# id :integer not null, primary key # id :integer not null, primary key
# name :string(255) # name :string(255)
# path :string(255) # path :string(255)
# description :text # description :text
# created_at :datetime # created_at :datetime
# updated_at :datetime # updated_at :datetime
# private_flag :boolean default(TRUE), not null # private_flag :boolean default(TRUE), not null
# code :string(255) # code :string(255)
# owner_id :integer # owner_id :integer
# default_branch :string(255) default("master"), not null
# #
...@@ -20,13 +20,12 @@ end ...@@ -20,13 +20,12 @@ end
# #
# Table name: users_projects # Table name: users_projects
# #
# id :integer not null, primary key # id :integer not null, primary key
# user_id :integer not null # user_id :integer not null
# project_id :integer not null # project_id :integer not null
# read :boolean default(FALSE) # created_at :datetime
# write :boolean default(FALSE) # updated_at :datetime
# admin :boolean default(FALSE) # repo_access :integer default(0), not null
# created_at :datetime # project_access :integer default(0), not null
# updated_at :datetime
# #
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment