Sha256: 532422ae20b321122cbb2c8ac628a53964b1008f9a5ba5a8b13f2f5048f14a41
Contents?: true
Size: 523 Bytes
Versions: 37
Compression:
Stored size: 523 Bytes
Contents
# frozen_string_literal: true class AddAllowPublicAccessToStaticPages < ActiveRecord::Migration[5.2] def change add_column :decidim_static_pages, :allow_public_access, :boolean, null: false, default: false reversible do |direction| direction.up do # rubocop:disable Rails/SkipsModelValidations Decidim::StaticPage.where(slug: "terms-and-conditions").update_all( allow_public_access: true ) # rubocop:enable Rails/SkipsModelValidations end end end end
Version data entries
37 entries across 37 versions & 1 rubygems