scinote-web/db/migrate/20160704110900_remove_keywords_from_module_protocols.rb
2016-07-21 13:11:15 +02:00

9 lines
No EOL
199 B
Ruby

class RemoveKeywordsFromModuleProtocols < ActiveRecord::Migration
def up
Protocol.find_each do |p|
if p.in_module? then
p.protocol_keywords.destroy_all
end
end
end
end