From cbf7f84798ef72a28d7365edbec8d7d90327ecc6 Mon Sep 17 00:00:00 2001 From: Braulio Bhavamitra Date: Thu, 22 Jan 2015 13:51:51 -0300 Subject: [PATCH] external_feed: Change column type to allow big addresses --- db/migrate/20150122165042_change_address_type_to_text_in_external_feed.rb | 9 +++++++++ db/schema.rb | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20150122165042_change_address_type_to_text_in_external_feed.rb diff --git a/db/migrate/20150122165042_change_address_type_to_text_in_external_feed.rb b/db/migrate/20150122165042_change_address_type_to_text_in_external_feed.rb new file mode 100644 index 0000000..817dd34 --- /dev/null +++ b/db/migrate/20150122165042_change_address_type_to_text_in_external_feed.rb @@ -0,0 +1,9 @@ +class ChangeAddressTypeToTextInExternalFeed < ActiveRecord::Migration + def up + change_column :external_feeds, :address, :text + end + + def down + change_column :external_feeds, :address, :string + end +end diff --git a/db/schema.rb b/db/schema.rb index 2d97bfb..a6fe8b8 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -315,7 +315,7 @@ ActiveRecord::Schema.define(:version => 20140827191326) do create_table "external_feeds", :force => true do |t| t.string "feed_title" t.datetime "fetched_at" - t.string "address" + t.text "address" t.integer "blog_id", :null => false t.boolean "enabled", :default => true, :null => false t.boolean "only_once", :default => true, :null => false -- libgit2 0.21.2