Sha256: a1f612dc53dbbfdebf3d42099c484baff5984a9c0087a10dabe74cad0d87a1a3
Contents?: true
Size: 459 Bytes
Versions: 3
Compression:
Stored size: 459 Bytes
Contents
class TidyUpBecauseOfBadException < ActiveRecord::Migration def change if Hyrax::PermissionTemplate.column_names.include?('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
3 entries across 3 versions & 1 rubygems