summaryrefslogtreecommitdiffstats
path: root/db/migrate/20091017213113_add_missing_indexes_to_enumerations.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20091017213113_add_missing_indexes_to_enumerations.rb')
-rw-r--r--db/migrate/20091017213113_add_missing_indexes_to_enumerations.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20091017213113_add_missing_indexes_to_enumerations.rb b/db/migrate/20091017213113_add_missing_indexes_to_enumerations.rb
new file mode 100644
index 000000000..85dedf816
--- /dev/null
+++ b/db/migrate/20091017213113_add_missing_indexes_to_enumerations.rb
@@ -0,0 +1,9 @@
+class AddMissingIndexesToEnumerations < ActiveRecord::Migration
+ def self.up
+ add_index :enumerations, [:id, :type]
+ end
+
+ def self.down
+ remove_index :enumerations, :column => [:id, :type]
+ end
+end