Sha256: 4cacdad4cd2670d2d0e609a3e45f536dad23606e079d76dbc964d4bc4f6ba4ff
Contents?: true
Size: 534 Bytes
Versions: 71
Compression:
Stored size: 534 Bytes
Contents
# frozen_string_literal: true class AddIdDocumentsFieldsToOrg < ActiveRecord::Migration[5.2] def change add_column :decidim_organizations, :id_documents_methods, :string, array: true, default: ["online"] add_column :decidim_organizations, :id_documents_explanation_text, :jsonb, default: {} # rubocop:disable Rails/SkipsModelValidations Decidim::Organization.reset_column_information Decidim::Organization.update_all(id_documents_methods: ["online"]) # rubocop:enable Rails/SkipsModelValidations end end
Version data entries
71 entries across 71 versions & 1 rubygems