incubator-olio-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wso...@apache.org
Subject svn commit: r748281 - /incubator/olio/webapp/rails/trunk/db/migrate/20090226193152_improve_indexes.rb
Date Thu, 26 Feb 2009 19:37:02 GMT
Author: wsobel
Date: Thu Feb 26 19:37:02 2009
New Revision: 748281

URL: http://svn.apache.org/viewvc?rev=748281&view=rev
Log:
OLIO-56: Added indexes for address zip code

Added:
    incubator/olio/webapp/rails/trunk/db/migrate/20090226193152_improve_indexes.rb

Added: incubator/olio/webapp/rails/trunk/db/migrate/20090226193152_improve_indexes.rb
URL: http://svn.apache.org/viewvc/incubator/olio/webapp/rails/trunk/db/migrate/20090226193152_improve_indexes.rb?rev=748281&view=auto
==============================================================================
--- incubator/olio/webapp/rails/trunk/db/migrate/20090226193152_improve_indexes.rb (added)
+++ incubator/olio/webapp/rails/trunk/db/migrate/20090226193152_improve_indexes.rb Thu Feb
26 19:37:02 2009
@@ -0,0 +1,9 @@
+class ImproveIndexes < ActiveRecord::Migration
+  def self.up
+    add_index :addresses, :zip
+  end
+
+  def self.down
+    remove_index :addresses, :zip
+  end
+end



Mime
View raw message