projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch '11095-cwl-control-reuse' closes #11095
[arvados.git]
/
services
/
api
/
db
/
migrate
/
20170216170823_no_cr_mounts_and_workflow_def_in_full_text_search_index.rb
diff --git
a/services/api/db/migrate/20170216170823_no_cr_mounts_and_workflow_def_in_full_text_search_index.rb
b/services/api/db/migrate/20170216170823_no_cr_mounts_and_workflow_def_in_full_text_search_index.rb
index 3d4a6062b49cc13d656ec732b7397d648f402c38..cc1b30d4db984d666f561ea591153d64aa99d8ce 100644
(file)
--- a/
services/api/db/migrate/20170216170823_no_cr_mounts_and_workflow_def_in_full_text_search_index.rb
+++ b/
services/api/db/migrate/20170216170823_no_cr_mounts_and_workflow_def_in_full_text_search_index.rb
@@
-22,7
+22,13
@@
class NoCrMountsAndWorkflowDefInFullTextSearchIndex < ActiveRecord::Migration
def down
fts_indexes.each do |t, i|
def down
fts_indexes.each do |t, i|
- remove_index t.to_sym, :name => i
+ t.classify.constantize.reset_column_information
+ ActiveRecord::Base.connection.indexes(t).each do |idx|
+ if idx.name == i
+ remove_index t.to_sym, :name => i
+ break
+ end
+ end
end
end
end
end
end
end