From a901e2c67af68013a3f7040d21860719c7264fc9 Mon Sep 17 00:00:00 2001 From: aledalgrande Date: Tue, 15 Jan 2013 12:29:44 +0000 Subject: changed description field to text type --- app/views/refinery/banners/admin/banners/_form.html.erb | 2 +- db/migrate/3_change_description_to_text.rb | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 db/migrate/3_change_description_to_text.rb diff --git a/app/views/refinery/banners/admin/banners/_form.html.erb b/app/views/refinery/banners/admin/banners/_form.html.erb index 3ea7421..5230cb1 100644 --- a/app/views/refinery/banners/admin/banners/_form.html.erb +++ b/app/views/refinery/banners/admin/banners/_form.html.erb @@ -19,7 +19,7 @@
<%= f.label :description -%> - <%= f.text_field :description -%> + <%= f.text_area :description, :rows => 20, :class => 'wymeditor widest' -%>
diff --git a/db/migrate/3_change_description_to_text.rb b/db/migrate/3_change_description_to_text.rb new file mode 100644 index 0000000..1d9724c --- /dev/null +++ b/db/migrate/3_change_description_to_text.rb @@ -0,0 +1,9 @@ +class ChangeDescriptionToText < ActiveRecord::Migration + def self.up + change_column :refinery_banners, :description, :text + end + + def self.down + change_column :refinery_banners, :description, :string + end +end \ No newline at end of file -- cgit v1.2.3