Sha256: a55fac97a9abbfd448774fe93f72cb7c1df2f555555a5f7ae10b90854d85e11e
Contents?: true
Size: 468 Bytes
Versions: 20
Compression:
Stored size: 468 Bytes
Contents
class TidyUpBecauseOfBadException < ActiveRecord::Migration[5.1] def change if column_exists?(Hyrax::PermissionTemplate.table_name, :workflow_id) Hyrax::PermissionTemplate.all.each do |permission_template| workflow_id = permission_template.workflow_id next unless workflow_id Sipity::Workflow.find(workflow_id).update(active: true) end remove_column Hyrax::PermissionTemplate.table_name, :workflow_id end end end
Version data entries
20 entries across 20 versions & 1 rubygems