Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kazuhiko Shiozaki
gitlab-ce
Commits
c4a575b7
Commit
c4a575b7
authored
Nov 16, 2011
by
Nihad Abbasov
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #105 from SaitoWu/annotate
annotate models
parents
79bcdfb8
7b5fd145
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
14 deletions
+10
-14
app/models/issue.rb
app/models/issue.rb
+0
-5
app/models/user.rb
app/models/user.rb
+5
-4
spec/models/issue_spec.rb
spec/models/issue_spec.rb
+0
-1
spec/models/user_spec.rb
spec/models/user_spec.rb
+5
-4
No files found.
app/models/issue.rb
View file @
c4a575b7
...
...
@@ -19,10 +19,6 @@ class Issue < ActiveRecord::Base
:presence
=>
true
,
:length
=>
{
:within
=>
0
..
255
}
#validates :content,
#:presence => true,
#:length => { :within => 0..2000 }
scope
:critical
,
where
(
:critical
=>
true
)
scope
:non_critical
,
where
(
:critical
=>
false
)
...
...
@@ -46,7 +42,6 @@ end
#
# id :integer not null, primary key
# title :string(255)
# content :text
# assignee_id :integer
# author_id :integer
# project_id :integer
...
...
app/models/user.rb
View file @
c4a575b7
...
...
@@ -64,9 +64,10 @@ end
# updated_at :datetime
# name :string(255)
# admin :boolean default(FALSE), not null
# projects_limit :integer
# skype :string
# linkedin :string
# twitter :string
# projects_limit :integer default(10)
# skype :string(255) default(""), not null
# linkedin :string(255) default(""), not null
# twitter :string(255) default(""), not null
# authentication_token :string(255)
#
spec/models/issue_spec.rb
View file @
c4a575b7
...
...
@@ -31,7 +31,6 @@ end
#
# id :integer not null, primary key
# title :string(255)
# content :text
# assignee_id :integer
# author_id :integer
# project_id :integer
...
...
spec/models/user_spec.rb
View file @
c4a575b7
...
...
@@ -58,9 +58,10 @@ end
# updated_at :datetime
# name :string(255)
# admin :boolean default(FALSE), not null
# projects_limit :integer
# skype :string
# linkedin :string
# twitter :string
# projects_limit :integer default(10)
# skype :string(255) default(""), not null
# linkedin :string(255) default(""), not null
# twitter :string(255) default(""), not null
# authentication_token :string(255)
#
Write
Preview
Markdown
is supported
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