From f56d05b8f55736758ab905de72a400f67f91cc1d Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sat, 4 Aug 2012 16:39:42 +0200 Subject: [PATCH] description: Make the text be of SQL type text. MySQL silently truncates the text... --- db/migrate/20120804143723_dhl_shipping_migration.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 db/migrate/20120804143723_dhl_shipping_migration.rb diff --git a/db/migrate/20120804143723_dhl_shipping_migration.rb b/db/migrate/20120804143723_dhl_shipping_migration.rb new file mode 100644 index 0000000..f8ecedb --- /dev/null +++ b/db/migrate/20120804143723_dhl_shipping_migration.rb @@ -0,0 +1,9 @@ +class DhlShippingMigration < ActiveRecord::Migration + def self.up + change_column :shipping_methods, :method_details, :text + end + + def self.down + change_column :shipping_methods, :method_details, :string + end +end