Commit f4e7ad7a4b8f188419104995e7b6346149ab31ab

Authored by gitlabhq
1 parent 9611a27e

fixed limit

db/migrate/20111027142641_change_note_note_to_text.rb
1 class ChangeNoteNoteToText < ActiveRecord::Migration 1 class ChangeNoteNoteToText < ActiveRecord::Migration
2 def up 2 def up
3 - change_column :notes, :note, :text 3 + change_column :notes, :note, :text, :limit => false
4 end 4 end
5 5
6 def down 6 def down
@@ -36,7 +36,7 @@ ActiveRecord::Schema.define(:version =&gt; 20111027142641) do @@ -36,7 +36,7 @@ ActiveRecord::Schema.define(:version =&gt; 20111027142641) do
36 end 36 end
37 37
38 create_table "notes", :force => true do |t| 38 create_table "notes", :force => true do |t|
39 - t.text "note", :limit => 255 39 + t.text "note"
40 t.string "noteable_id" 40 t.string "noteable_id"
41 t.string "noteable_type" 41 t.string "noteable_type"
42 t.integer "author_id" 42 t.integer "author_id"