From f741112818dc19bff5f1afe1082bd9e198e7ecc9 Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Thu, 23 Apr 2015 17:19:11 +0200 Subject: [PATCH] Added migration to make package.long_description a longer text field --- .../20150422223156_change_package_longdescription_to_text.rb | 5 +++++ db/schema.rb | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 db/migrate/20150422223156_change_package_longdescription_to_text.rb diff --git a/db/migrate/20150422223156_change_package_longdescription_to_text.rb b/db/migrate/20150422223156_change_package_longdescription_to_text.rb new file mode 100644 index 0000000..80ac3a4 --- /dev/null +++ b/db/migrate/20150422223156_change_package_longdescription_to_text.rb @@ -0,0 +1,5 @@ +class ChangePackageLongdescriptionToText < ActiveRecord::Migration + def change + change_column :packages, :long_description, :text + end +end diff --git a/db/schema.rb b/db/schema.rb index 489ff6c..61b2333 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20150103194230) do +ActiveRecord::Schema.define(version: 20150422223156) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -31,7 +31,7 @@ ActiveRecord::Schema.define(version: 20150103194230) do t.string "maintainer_email", limit: 100 t.string "homepage", limit: 400 t.string "version", limit: 200 - t.string "long_description", limit: 2000 + t.text "long_description" t.string "origin", limit: 80 t.datetime "created_at" t.datetime "updated_at"