Sha256: b16f490cba45f5b5cd5d494ce4af6ffcf64db1c97a183377036eb74edd299692
Contents?: true
Size: 518 Bytes
Versions: 44
Compression:
Stored size: 518 Bytes
Contents
# frozen_string_literal: true class AddExternalDomainWhitelistToOrganization < ActiveRecord::Migration[5.2] def change add_column :decidim_organizations, :external_domain_whitelist, :string, array: true, default: [] reversible do |direction| direction.up do # rubocop:disable Rails/SkipsModelValidations Decidim::Organization.update_all("external_domain_whitelist = ARRAY['decidim.org', 'github.com']") # rubocop:enable Rails/SkipsModelValidations end end end end
Version data entries
44 entries across 44 versions & 1 rubygems