Skip to content

Commit

Permalink
add projects index
Browse files Browse the repository at this point in the history
  • Loading branch information
steved committed Dec 11, 2014
1 parent 3b4d9cb commit 20986ce
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions db/migrate/20141211005600_projects_index_deleted_at.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
class ProjectsIndexDeletedAt < ActiveRecord::Migration
def change
add_index :projects, [:permalink, :deleted_at]
add_index :projects, [:token, :deleted_at]

remove_index :projects, column: :permalink
remove_index :projects, column: :token
end
end

0 comments on commit 20986ce

Please sign in to comment.