Turns out some error messages are longer than the 255 chars in the 'string' type, so switch last_error in instances to be a 'text' field. This fixes a bug we were seeing where long error messages weren't getting into the db.
Signed-off-by: Ian Main <[email protected]> --- .../migrate/20101021172441_use_text_for_errors.rb | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) create mode 100644 src/db/migrate/20101021172441_use_text_for_errors.rb diff --git a/src/db/migrate/20101021172441_use_text_for_errors.rb b/src/db/migrate/20101021172441_use_text_for_errors.rb new file mode 100644 index 0000000..c09ec38 --- /dev/null +++ b/src/db/migrate/20101021172441_use_text_for_errors.rb @@ -0,0 +1,9 @@ +class UseTextForErrors < ActiveRecord::Migration + def self.up + change_column :instances, :last_error, :text + end + + def self.down + change_column :instances, :last_error, :string + end +end -- 1.7.2.3 _______________________________________________ deltacloud-devel mailing list [email protected] https://fedorahosted.org/mailman/listinfo/deltacloud-devel
