From bf5741e9104b4b0bff1fcbe980163239bcfd683f Mon Sep 17 00:00:00 2001 From: Paul Morganthall Date: Fri, 3 May 2013 22:54:15 -0300 Subject: [PATCH] Allow longer URLs The PostgreSQL string on Heroku only allows 255 characters. Use 'text' instead to allow longer URLs. --- db/migrate/20130504005816_text_url.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 db/migrate/20130504005816_text_url.rb diff --git a/db/migrate/20130504005816_text_url.rb b/db/migrate/20130504005816_text_url.rb new file mode 100644 index 000000000..a62d7a10d --- /dev/null +++ b/db/migrate/20130504005816_text_url.rb @@ -0,0 +1,9 @@ +class TextUrl < ActiveRecord::Migration + def up + change_column :feeds, :url, :text + end + + def down + change_column :feeds, :url, :string + end +end