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
iv
gitlab-ce
Commits
9611a27e
Commit
9611a27e
authored
Oct 27, 2011
by
gitlabhq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
note as text
parent
5fe736ab
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
4 deletions
+12
-4
app/models/note.rb
app/models/note.rb
+1
-1
app/views/notes/_form.html.haml
app/views/notes/_form.html.haml
+1
-1
db/migrate/20111027142641_change_note_note_to_text.rb
db/migrate/20111027142641_change_note_note_to_text.rb
+8
-0
db/schema.rb
db/schema.rb
+2
-2
No files found.
app/models/note.rb
View file @
9611a27e
...
...
@@ -13,7 +13,7 @@ class Note < ActiveRecord::Base
validates
:note
,
:presence
=>
true
,
:length
=>
{
:within
=>
0
..
255
}
:length
=>
{
:within
=>
0
..
5000
}
validates
:attachment
,
:file_size
=>
{
...
...
app/views/notes/_form.html.haml
View file @
9611a27e
...
...
@@ -10,7 +10,7 @@
%div
=
f
.
label
:note
%cite
(255 symbols only)
%cite
%br
=
f
.
text_area
:note
,
:size
=>
255
...
...
db/migrate/20111027142641_change_note_note_to_text.rb
0 → 100644
View file @
9611a27e
class
ChangeNoteNoteToText
<
ActiveRecord
::
Migration
def
up
change_column
:notes
,
:note
,
:text
end
def
down
end
end
db/schema.rb
View file @
9611a27e
...
...
@@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
:version
=>
2011102
5134235
)
do
ActiveRecord
::
Schema
.
define
(
:version
=>
2011102
7142641
)
do
create_table
"issues"
,
:force
=>
true
do
|
t
|
t
.
string
"title"
...
...
@@ -36,7 +36,7 @@ ActiveRecord::Schema.define(:version => 20111025134235) do
end
create_table
"notes"
,
:force
=>
true
do
|
t
|
t
.
string
"note"
t
.
text
"note"
,
:limit
=>
255
t
.
string
"noteable_id"
t
.
string
"noteable_type"
t
.
integer
"author_id"
...
...
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