Sha256: 797c4f2364bdb697cba4fd035fde8ae7b47478cfa478d73533941063ab337c35
Contents?: true
Size: 468 Bytes
Versions: 42
Compression:
Stored size: 468 Bytes
Contents
class TidyUpBecauseOfBadException < ActiveRecord::Migration[5.2] 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
42 entries across 28 versions & 1 rubygems