diff options
author | Louise Crow <louise.crow@gmail.com> | 2013-01-17 17:16:49 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2013-01-17 17:16:49 +0000 |
commit | 153fcf56924dd581fbdaad0ff7d3c6b5e5d95a24 (patch) | |
tree | 4ec1547c79e7550a37d39138f1b04e18cc80f8dd | |
parent | cc91fa28cd0e64576a5f2d8e5c2cb3629636ee74 (diff) | |
parent | a5e90e2b7ea6adedbf80c05bbb84425a02c63da0 (diff) |
Merge remote-tracking branch 'openaustralia_github/db_migration' into develop
-rw-r--r-- | db/migrate/094_remove_old_tags_foreign_key.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/db/migrate/094_remove_old_tags_foreign_key.rb b/db/migrate/094_remove_old_tags_foreign_key.rb index 1a87b97c2..839f76334 100644 --- a/db/migrate/094_remove_old_tags_foreign_key.rb +++ b/db/migrate/094_remove_old_tags_foreign_key.rb @@ -4,10 +4,11 @@ class RemoveOldTagsForeignKey < ActiveRecord::Migration execute "ALTER TABLE has_tag_string_tags DROP CONSTRAINT fk_public_body_tags_public_body" end - remove_index :public_body_tags, [:public_body_id, :name, :value] - remove_index :public_body_tags, :name + # This table was already removed in the previous migration + # remove_index :public_body_tags, [:public_body_id, :name, :value] + # remove_index :public_body_tags, :name - add_index :has_tag_string_tags, [:model, :model_id, :name, :value] + add_index :has_tag_string_tags, [:model, :model_id, :name, :value], :name => 'by_model_and_model_id_and_name_and_value' add_index :has_tag_string_tags, :name end |