Browse files

Revert "Updated schema so that a unique index isn’t used for key colu…

…mn of phrases table. Simplifies usage with MySQL."

This reverts commit 395d38c.
  • Loading branch information...
1 parent 395d38c commit 51e0a9720dab87e183637965a62d89ba56a646f7 Craig Davey committed Apr 14, 2010
Showing with 2 additions and 15 deletions.
  1. +0 −13 db/migrate/20100414211758_fix_index_of_phrases_on_key.rb
  2. +2 −2 db/schema.rb
View
13 db/migrate/20100414211758_fix_index_of_phrases_on_key.rb
@@ -1,13 +0,0 @@
-class FixIndexOfPhrasesOnKey < ActiveRecord::Migration
- def self.up
- remove_index :tolk_phrases, :column => :key
-
- add_index :tolk_phrases, :key
- end
-
- def self.down
- remove_index :tolk_phrases, :key
-
- add_index :tolk_phrases, :key, :unique => true
- end
-end
View
4 db/schema.rb
@@ -9,7 +9,7 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20100414211758) do
+ActiveRecord::Schema.define(:version => 20100409194926) do
create_table "tolk_locales", :force => true do |t|
t.string "name"
@@ -25,7 +25,7 @@
t.datetime "updated_at"
end
- add_index "tolk_phrases", ["key"], :name => "index_tolk_phrases_on_key"
+ add_index "tolk_phrases", ["key"], :name => "index_tolk_phrases_on_key", :unique => true
create_table "tolk_translations", :force => true do |t|
t.integer "phrase_id"

0 comments on commit 51e0a97

Please sign in to comment.