Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
02e21523993f
Commit
02e21523
authored
Mar 15, 2013
by
Dmitriy Zaporozhets
Browse files
reannotated
parent
e9ef324ff642
Changes
17
Hide whitespace changes
Inline
Side-by-side
app/models/group.rb
View file @
02e21523
...
...
@@ -4,9 +4,8 @@
#
# id :integer not null, primary key
# name :string(255) not null
# description :string(255) not null
# path :string(255) not null
# owner_id :integer not null
# created_at :datetime not null
# updated_at :datetime not null
# type :string(255)
...
...
@@ -8,8 +7,9 @@
# path :string(255) not null
# owner_id :integer not null
# created_at :datetime not null
# updated_at :datetime not null
# type :string(255)
# description :string(255) default(""), not null
#
class
Group
<
Namespace
...
...
app/models/issue.rb
View file @
02e21523
...
...
@@ -9,8 +9,7 @@
# project_id :integer
# created_at :datetime not null
# updated_at :datetime not null
# state :string default(FALSE), not null
# position :integer default(0)
# branch_name :string(255)
# description :text
# milestone_id :integer
...
...
@@ -13,7 +12,8 @@
# position :integer default(0)
# branch_name :string(255)
# description :text
# milestone_id :integer
# state :string(255)
#
class
Issue
<
ActiveRecord
::
Base
...
...
app/models/merge_request.rb
View file @
02e21523
...
...
@@ -9,8 +9,7 @@
# author_id :integer
# assignee_id :integer
# title :string(255)
# state :string(255) not null
# created_at :datetime not null
# updated_at :datetime not null
# st_commits :text(2147483647)
# st_diffs :text(2147483647)
...
...
@@ -13,6 +12,8 @@
# created_at :datetime not null
# updated_at :datetime not null
# st_commits :text(2147483647)
# st_diffs :text(2147483647)
# merge_status :integer default(1), not null
# milestone_id :integer
# state :string(255)
# merge_status :string(255)
#
...
...
@@ -18,5 +19,4 @@
#
# milestone_id :integer
require
Rails
.
root
.
join
(
"app/models/commit"
)
require
Rails
.
root
.
join
(
"lib/static_model"
)
...
...
app/models/milestone.rb
View file @
02e21523
...
...
@@ -7,6 +7,5 @@
# project_id :integer not null
# description :text
# due_date :date
# closed :boolean default(FALSE), not null
# created_at :datetime not null
# updated_at :datetime not null
...
...
@@ -11,5 +10,6 @@
# created_at :datetime not null
# updated_at :datetime not null
# state :string(255)
#
class
Milestone
<
ActiveRecord
::
Base
...
...
app/models/namespace.rb
View file @
02e21523
...
...
@@ -4,9 +4,8 @@
#
# id :integer not null, primary key
# name :string(255) not null
# description :string(255) not null
# path :string(255) not null
# owner_id :integer not null
# created_at :datetime not null
# updated_at :datetime not null
# type :string(255)
...
...
@@ -8,8 +7,9 @@
# path :string(255) not null
# owner_id :integer not null
# created_at :datetime not null
# updated_at :datetime not null
# type :string(255)
# description :string(255) default(""), not null
#
class
Namespace
<
ActiveRecord
::
Base
...
...
app/models/project.rb
View file @
02e21523
...
...
@@ -11,9 +11,8 @@
# creator_id :integer
# default_branch :string(255)
# issues_enabled :boolean default(TRUE), not null
# issues_tracker :string not null
# wall_enabled :boolean default(TRUE), not null
# merge_requests_enabled :boolean default(TRUE), not null
# wiki_enabled :boolean default(TRUE), not null
# namespace_id :integer
# public :boolean default(FALSE), not null
...
...
@@ -15,8 +14,10 @@
# wall_enabled :boolean default(TRUE), not null
# merge_requests_enabled :boolean default(TRUE), not null
# wiki_enabled :boolean default(TRUE), not null
# namespace_id :integer
# public :boolean default(FALSE), not null
# issues_tracker :string(255) default("gitlab"), not null
# issues_tracker_id :string(255)
#
require
"grit"
...
...
app/models/user.rb
View file @
02e21523
...
...
@@ -22,6 +22,5 @@
# linkedin :string(255) default(""), not null
# twitter :string(255) default(""), not null
# authentication_token :string(255)
# dark_scheme :boolean default(FALSE), not null
# theme_id :integer default(1), not null
# bio :string(255)
...
...
@@ -26,6 +25,5 @@
# theme_id :integer default(1), not null
# bio :string(255)
# state :string(255)
# failed_attempts :integer default(0)
# locked_at :datetime
# extern_uid :string(255)
...
...
@@ -33,6 +31,8 @@
# username :string(255)
# can_create_group :boolean default(TRUE), not null
# can_create_team :boolean default(TRUE), not null
# state :string(255)
# color_scheme_id :integer default(1), not null
#
class
User
<
ActiveRecord
::
Base
...
...
app/models/user_team.rb
View file @
02e21523
...
...
@@ -2,12 +2,13 @@
#
# Table name: user_teams
#
# id :integer not null, primary key
# name :string(255)
# path :string(255)
# owner_id :integer
# created_at :datetime not null
# updated_at :datetime not null
# id :integer not null, primary key
# name :string(255)
# path :string(255)
# owner_id :integer
# created_at :datetime not null
# updated_at :datetime not null
# description :string(255) default(""), not null
#
class
UserTeam
<
ActiveRecord
::
Base
...
...
spec/factories/user_teams.rb
View file @
02e21523
...
...
@@ -2,12 +2,13 @@
#
# Table name: user_teams
#
# id :integer not null, primary key
# name :string(255)
# path :string(255)
# owner_id :integer
# created_at :datetime not null
# updated_at :datetime not null
# id :integer not null, primary key
# name :string(255)
# path :string(255)
# owner_id :integer
# created_at :datetime not null
# updated_at :datetime not null
# description :string(255) default(""), not null
#
# Read about factories at https://github.com/thoughtbot/factory_girl
...
...
spec/models/group_spec.rb
View file @
02e21523
...
...
@@ -2,13 +2,14 @@
#
# Table name: namespaces
#
# id :integer not null, primary key
# name :string(255) not null
# path :string(255) not null
# owner_id :integer not null
# created_at :datetime not null
# updated_at :datetime not null
# type :string(255)
# id :integer not null, primary key
# name :string(255) not null
# path :string(255) not null
# owner_id :integer not null
# created_at :datetime not null
# updated_at :datetime not null
# type :string(255)
# description :string(255) default(""), not null
#
require
'spec_helper'
...
...
spec/models/issue_spec.rb
View file @
02e21523
...
...
@@ -9,8 +9,7 @@
# project_id :integer
# created_at :datetime not null
# updated_at :datetime not null
# state :string default(FALSE), not null
# position :integer default(0)
# branch_name :string(255)
# description :text
# milestone_id :integer
...
...
@@ -13,7 +12,8 @@
# position :integer default(0)
# branch_name :string(255)
# description :text
# milestone_id :integer
# state :string(255)
#
require
'spec_helper'
...
...
spec/models/merge_request_spec.rb
View file @
02e21523
...
...
@@ -9,8 +9,7 @@
# author_id :integer
# assignee_id :integer
# title :string(255)
# closed :boolean default(FALSE), not null
# created_at :datetime not null
# updated_at :datetime not null
# st_commits :text(2147483647)
# st_diffs :text(2147483647)
...
...
@@ -13,7 +12,5 @@
# created_at :datetime not null
# updated_at :datetime not null
# st_commits :text(2147483647)
# st_diffs :text(2147483647)
# merged :boolean default(FALSE), not null
# merge_status :integer default(1), not null
# milestone_id :integer
...
...
@@ -19,4 +16,6 @@
# milestone_id :integer
# state :string(255)
# merge_status :string(255)
#
require
'spec_helper'
...
...
spec/models/milestone_spec.rb
View file @
02e21523
...
...
@@ -7,6 +7,5 @@
# project_id :integer not null
# description :text
# due_date :date
# state :string default(FALSE), not null
# created_at :datetime not null
# updated_at :datetime not null
...
...
@@ -11,5 +10,6 @@
# created_at :datetime not null
# updated_at :datetime not null
# state :string(255)
#
require
'spec_helper'
...
...
spec/models/namespace_spec.rb
View file @
02e21523
...
...
@@ -2,13 +2,14 @@
#
# Table name: namespaces
#
# id :integer not null, primary key
# name :string(255) not null
# path :string(255) not null
# owner_id :integer not null
# created_at :datetime not null
# updated_at :datetime not null
# type :string(255)
# id :integer not null, primary key
# name :string(255) not null
# path :string(255) not null
# owner_id :integer not null
# created_at :datetime not null
# updated_at :datetime not null
# type :string(255)
# description :string(255) default(""), not null
#
require
'spec_helper'
...
...
spec/models/project_spec.rb
View file @
02e21523
...
...
@@ -16,6 +16,8 @@
# wiki_enabled :boolean default(TRUE), not null
# namespace_id :integer
# public :boolean default(FALSE), not null
# issues_tracker :string(255) default("gitlab"), not null
# issues_tracker_id :string(255)
#
require
'spec_helper'
...
...
spec/models/user_spec.rb
View file @
02e21523
...
...
@@ -22,6 +22,5 @@
# linkedin :string(255) default(""), not null
# twitter :string(255) default(""), not null
# authentication_token :string(255)
# dark_scheme :boolean default(FALSE), not null
# theme_id :integer default(1), not null
# bio :string(255)
...
...
@@ -26,6 +25,5 @@
# theme_id :integer default(1), not null
# bio :string(255)
# state :string(255) default(FALSE), not null
# failed_attempts :integer default(0)
# locked_at :datetime
# extern_uid :string(255)
...
...
@@ -33,6 +31,8 @@
# username :string(255)
# can_create_group :boolean default(TRUE), not null
# can_create_team :boolean default(TRUE), not null
# state :string(255)
# color_scheme_id :integer default(1), not null
#
require
'spec_helper'
...
...
spec/models/user_team_spec.rb
View file @
02e21523
...
...
@@ -2,12 +2,13 @@
#
# Table name: user_teams
#
# id :integer not null, primary key
# name :string(255)
# path :string(255)
# owner_id :integer
# created_at :datetime not null
# updated_at :datetime not null
# id :integer not null, primary key
# name :string(255)
# path :string(255)
# owner_id :integer
# created_at :datetime not null
# updated_at :datetime not null
# description :string(255) default(""), not null
#
require
'spec_helper'
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment