Sha256: b8eb0c27922d926c430bd2a8484ec44eb8277e94007aaa17feaf66857e9cfcfe
Contents?: true
Size: 481 Bytes
Versions: 5
Compression:
Stored size: 481 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: [] handlers = Decidim.authorization_handlers Organization.find_each do |org| org.update_attributes!(available_authorizations: handlers) end end end
Version data entries
5 entries across 5 versions & 1 rubygems