Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
projects.thm.de
GitLab
Commits
7b5fd145
Commit
7b5fd145
authored
Nov 16, 2011
by
Saito
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
annotate models
parent
f294b8d4
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 @
7b5fd145
...
...
@@ -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 @@ def new?
#
# 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 @
7b5fd145
...
...
@@ -64,9 +64,10 @@ def last_activity_project
# 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 @
7b5fd145
...
...
@@ -31,7 +31,6 @@
#
# 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 @
7b5fd145
...
...
@@ -58,9 +58,10 @@
# 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