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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
d03f2687
Commit
d03f2687
authored
Oct 17, 2011
by
gitlabhq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
annotated
parent
783ca897
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
0 deletions
+30
-0
app/models/issue.rb
app/models/issue.rb
+1
-0
app/models/snippet.rb
app/models/snippet.rb
+14
-0
spec/models/issue_spec.rb
spec/models/issue_spec.rb
+1
-0
spec/models/snippet_spec.rb
spec/models/snippet_spec.rb
+14
-0
No files found.
app/models/issue.rb
View file @
d03f2687
...
...
@@ -37,5 +37,6 @@ end
# created_at :datetime
# updated_at :datetime
# closed :boolean default(FALSE), not null
# position :integer default(0)
#
app/models/snippet.rb
View file @
d03f2687
...
...
@@ -29,3 +29,17 @@ class Snippet < ActiveRecord::Base
]
end
end
# == Schema Information
#
# Table name: snippets
#
# id :integer not null, primary key
# title :string(255)
# content :text
# author_id :integer not null
# project_id :integer not null
# created_at :datetime
# updated_at :datetime
# file_name :string(255)
#
spec/models/issue_spec.rb
View file @
d03f2687
...
...
@@ -38,5 +38,6 @@ end
# created_at :datetime
# updated_at :datetime
# closed :boolean default(FALSE), not null
# position :integer default(0)
#
spec/models/snippet_spec.rb
View file @
d03f2687
...
...
@@ -14,3 +14,17 @@ describe Snippet do
it
{
should
validate_presence_of
(
:content
)
}
end
end
# == Schema Information
#
# Table name: snippets
#
# id :integer not null, primary key
# title :string(255)
# content :text
# author_id :integer not null
# project_id :integer not null
# created_at :datetime
# updated_at :datetime
# file_name :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