Sha256: 77819564fd1ad019b0e6a35aef83f2ae674112345395b09368951d8d7e202d4f
Contents?: true
Size: 486 Bytes
Versions: 90
Compression:
Stored size: 486 Bytes
Contents
# frozen_string_literal: true class AddAvailableAuthorizationsToOrganization < ActiveRecord::Migration[5.0] class Organization < ApplicationRecord self.table_name = :decidim_organizations end def change add_column :decidim_organizations, :available_authorizations, :string, array: true, default: [] workflows = Decidim::Verifications.workflows.map(&:name) Organization.find_each do |org| org.update!(available_authorizations: workflows) end end end
Version data entries
90 entries across 90 versions & 1 rubygems