Sha256: e44d0d3cabb765396d1bb4ec0152d65227d806e0583b252e56447a06081cba6a
Contents?: true
Size: 408 Bytes
Versions: 30
Compression:
Stored size: 408 Bytes
Contents
# frozen_string_literal: true class AddAvailableAuthorizationsToOrganization < ActiveRecord::Migration[5.0] def change add_column :decidim_organizations, :available_authorizations, :string, array: true, default: [] handlers = Decidim.authorization_handlers.map(&:name) Decidim::Organization.find_each do |org| org.update_attributes(available_authorizations: handlers) end end end
Version data entries
30 entries across 30 versions & 2 rubygems