mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-11 01:44:34 +08:00
9 lines
No EOL
199 B
Ruby
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 |