incubator-olio-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wso...@apache.org
Subject svn commit: r749436 - /incubator/olio/webapp/rails/trunk/db/migrate/20090302210151_increase_db_field_sizes.rb
Date Mon, 02 Mar 2009 21:11:59 GMT
Author: wsobel
Date: Mon Mar  2 21:11:59 2009
New Revision: 749436

URL: http://svn.apache.org/viewvc?rev=749436&view=rev
Log:
Fix for OLIO-57: Increased size of description and summary to increase database size

Added:
    incubator/olio/webapp/rails/trunk/db/migrate/20090302210151_increase_db_field_sizes.rb

Added: incubator/olio/webapp/rails/trunk/db/migrate/20090302210151_increase_db_field_sizes.rb
URL: http://svn.apache.org/viewvc/incubator/olio/webapp/rails/trunk/db/migrate/20090302210151_increase_db_field_sizes.rb?rev=749436&view=auto
==============================================================================
--- incubator/olio/webapp/rails/trunk/db/migrate/20090302210151_increase_db_field_sizes.rb
(added)
+++ incubator/olio/webapp/rails/trunk/db/migrate/20090302210151_increase_db_field_sizes.rb
Mon Mar  2 21:11:59 2009
@@ -0,0 +1,11 @@
+class IncreaseDbFieldSizes < ActiveRecord::Migration
+  def self.up
+    change_column :events, :description, :text
+    change_column :events, :summary, :string, :limit => 1024
+  end
+
+  def self.down
+    change_column :events, :description, :string, :limit =>  500   
+    change_column :events, :summary, :string, :limit => 100
+  end
+end



Mime
View raw message