Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding more indexes

  • Loading branch information...
commit 55ffef57e642286c7e89a39ac3dbadf72da05601 1 parent aae44a6
@winton authored
Showing with 15 additions and 0 deletions.
  1. +15 −0 db/migrate/013_more_indexes.rb
View
15 db/migrate/013_more_indexes.rb
@@ -0,0 +1,15 @@
+class MoreIndexes < ActiveRecord::Migration
+ def self.up
+ add_index :categories, :name
+ add_index :envs, :name
+ add_index :sites, :name
+ add_index :users, :token
+ end
+
+ def self.down
+ remove_index :categories, :name
+ remove_index :envs, :name
+ remove_index :sites, :name
+ remove_index :users, :token
+ end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.