mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-27 02:16:20 +08:00
10 lines
205 B
Ruby
10 lines
205 B
Ruby
class RemoveKeywordsFromModuleProtocols < ActiveRecord::Migration[4.2]
|
|
def up
|
|
Protocol.find_each do |p|
|
|
if p.in_module? then
|
|
p.protocol_keywords.destroy_all
|
|
end
|
|
end
|
|
end
|
|
end
|