Sha256: 90713c83d017d9c6d36d43730499f40f8ea9f9d2e62ae5afd3d1db8935419b9e
Contents?: true
Size: 475 Bytes
Versions: 6
Compression:
Stored size: 475 Bytes
Contents
# frozen_string_literal: true class AddPublishedAtToParagraphs < ActiveRecord::Migration[5.1] def up add_column :decidim_enhanced_textwork_paragraphs, :published_at, :datetime, index: true # rubocop:disable Rails/SkipsModelValidations Decidim::EnhancedTextwork::Paragraph.update_all("published_at = updated_at") # rubocop:enable Rails/SkipsModelValidations end def down remove_column :decidim_enhanced_textwork_paragraphs, :published_at end end
Version data entries
6 entries across 6 versions & 1 rubygems