Permalink
Browse files

Magrin - Fixed bug: the rollback for the migration to create an index…

… for organizations table was dropping the table instead of removing the index.
  • Loading branch information...
1 parent a6336b4 commit 1dea93ef39313b2d8449d21019fe2973a9a2abf8 @rmagrin rmagrin committed Oct 4, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 db/migrate/20100910000000_create_index_for_organizations.rb
View
4 db/migrate/20100910000000_create_index_for_organizations.rb
@@ -1,9 +1,9 @@
-class CreateIndexOrganization < ActiveRecord::Migration
+class CreateIndexForOrganizations < ActiveRecord::Migration
def self.up
add_index :organizations, :id
end
def self.down
- drop_table :organizations
+ remove_index :organizations, :id
end
end

0 comments on commit 1dea93e

Please sign in to comment.