public
Clone URL: git://github.com/robbyrussell/rubyurl.git
Search Repo:
Adding index for website url

git-svn-id: https://svn.roundhaus.com/planetargon/rubyurl_2-0/trunk@88 
f0bc2f90-cf15-dc11-b192-0016e6374d05
robbyrussell (author)
Fri Nov 30 07:24:39 -0800 2007
commit  11a4ce0206456866f4e17579409b98d0d172c0b2
tree    77e421789de56fbfb3eb676afb87eb74d1bd341b
parent  40c0178bd26a5e89f0a97bd4e8f5d8ea2f4cafa3
...
 
 
 
 
 
 
 
 
 
 
 
...
1
2
3
4
5
6
7
8
9
10
11
0
@@ -1 +1,12 @@
0
+class AddIndexOnWebsiteUrl < ActiveRecord::Migration
0
+ def self.up
0
+
0
+ execute "CREATE INDEX website_url_index ON links ((substring(website_url, 0, 200)));"
0
+
0
+ end
0
+
0
+ def self.down
0
+ execute "DROP INDEX website_url_index;"
0
+ end
0
+end

Comments

    No one has commented yet.