aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authoraledalgrande <adgror@gmail.com>2013-01-15 12:29:44 +0000
committeraledalgrande <adgror@gmail.com>2013-01-15 12:29:44 +0000
commita901e2c67af68013a3f7040d21860719c7264fc9 (patch)
treeaf5bd9f372d1bca5cf583cf584923c217dbaf616 /db
parenta6b8f84c49f8165751bc78cde273a2955dfc8013 (diff)
downloadrefinerycms-pc_banners-master.tar.gz
refinerycms-pc_banners-master.tar.bz2
refinerycms-pc_banners-master.zip
changed description field to text typeHEADmaster
Diffstat (limited to 'db')
-rw-r--r--db/migrate/3_change_description_to_text.rb9
1 files changed, 9 insertions, 0 deletions
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