annotate plugins/engines/generators/plugin_migration/templates/plugin_migration.html.erb @ 1628:9c5f8e24dadc live tip

Quieten this cron script
author Chris Cannam
date Tue, 25 Aug 2020 11:38:49 +0100
parents b4b72f1eb644
children
rev   line source
Chris@0 1 class <%= class_name %> < ActiveRecord::Migration
Chris@0 2 def self.up
Chris@0 3 <%- plugins.each do |plugin| -%>
Chris@0 4 Engines.plugins["<%= plugin.name %>"].migrate(<%= new_versions[plugin.name] %>)
Chris@0 5 <%- end -%>
Chris@0 6 end
Chris@0 7
Chris@0 8 def self.down
Chris@0 9 <%- plugins.each do |plugin| -%>
Chris@0 10 Engines.plugins["<%= plugin.name %>"].migrate(<%= current_versions[plugin.name] %>)
Chris@0 11 <%- end -%>
Chris@0 12 end
Chris@0 13 end