summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/models/note.rb2
-rw-r--r--app/views/notes/_form.html.haml2
-rw-r--r--db/migrate/20111027142641_change_note_note_to_text.rb8
-rw-r--r--db/schema.rb4
4 files changed, 12 insertions, 4 deletions
diff --git a/app/models/note.rb b/app/models/note.rb
index 9dcdbb55114..645bc7cec12 100644
--- a/app/models/note.rb
+++ b/app/models/note.rb
@@ -13,7 +13,7 @@ class Note < ActiveRecord::Base
validates :note,
:presence => true,
- :length => { :within => 0..255 }
+ :length => { :within => 0..5000 }
validates :attachment,
:file_size => {
diff --git a/app/views/notes/_form.html.haml b/app/views/notes/_form.html.haml
index 14e74fa694f..86f0b779adb 100644
--- a/app/views/notes/_form.html.haml
+++ b/app/views/notes/_form.html.haml
@@ -10,7 +10,7 @@
%div
= f.label :note
- %cite (255 symbols only)
+ %cite
%br
= f.text_area :note, :size => 255
diff --git a/db/migrate/20111027142641_change_note_note_to_text.rb b/db/migrate/20111027142641_change_note_note_to_text.rb
new file mode 100644
index 00000000000..d762d361aec
--- /dev/null
+++ b/db/migrate/20111027142641_change_note_note_to_text.rb
@@ -0,0 +1,8 @@
+class ChangeNoteNoteToText < ActiveRecord::Migration
+ def up
+ change_column :notes, :note, :text
+ end
+
+ def down
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 21c224d4a90..8dd75e75004 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20111025134235) do
+ActiveRecord::Schema.define(:version => 20111027142641) 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"