Sha256: 96f6fd62cf9df760b75c10eb215a50de76699c69ebde74cca76e520c43b06ab1
Contents?: true
Size: 659 Bytes
Versions: 37
Compression:
Stored size: 659 Bytes
Contents
# frozen_string_literal: true class TransformShowEmbeddedIframeColumn < ActiveRecord::Migration[6.0] def up add_column :decidim_meetings_meetings, :iframe_embed_type, :integer, default: 0 execute "UPDATE decidim_meetings_meetings SET iframe_embed_type = 1 WHERE show_embedded_iframe = 't'" remove_column :decidim_meetings_meetings, :show_embedded_iframe end def down add_column :decidim_meetings_meetings, :show_embedded_iframe, :boolean, default: false execute "UPDATE decidim_meetings_meetings SET show_embedded_iframe = 't' WHERE iframe_embed_type = 1" remove_column :decidim_meetings_meetings, :iframe_embed_type end end
Version data entries
37 entries across 37 versions & 1 rubygems