Sha256: 8b96d2c67f6346b610b708fd984c5527a264d5bb373ab0f4cab79b23c374a0d8

Contents?: true

Size: 447 Bytes

Versions: 37

Compression:

Stored size: 447 Bytes

Contents

# frozen_string_literal: true

class AddTimestampsToContentBlocks < ActiveRecord::Migration[6.0]
  def up
    add_timestamps :decidim_content_blocks, default: Time.zone.now
    change_column_default :decidim_content_blocks, :created_at, nil
    change_column_default :decidim_content_blocks, :updated_at, nil
  end

  def down
    remove_column :decidim_content_blocks, :updated_at
    remove_column :decidim_content_blocks, :created_at
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
decidim-core-0.29.1 db/migrate/20211126183540_add_timestamps_to_content_blocks.rb
decidim-core-0.28.4 db/migrate/20211126183540_add_timestamps_to_content_blocks.rb
decidim-core-0.27.9 db/migrate/20211126183540_add_timestamps_to_content_blocks.rb
decidim-core-0.29.0 db/migrate/20211126183540_add_timestamps_to_content_blocks.rb
decidim-core-0.28.3 db/migrate/20211126183540_add_timestamps_to_content_blocks.rb
decidim-core-0.27.8 db/migrate/20211126183540_add_timestamps_to_content_blocks.rb
decidim-core-0.29.0.rc4 db/migrate/20211126183540_add_timestamps_to_content_blocks.rb
decidim-core-0.29.0.rc3 db/migrate/20211126183540_add_timestamps_to_content_blocks.rb
decidim-core-0.29.0.rc2 db/migrate/20211126183540_add_timestamps_to_content_blocks.rb
decidim-core-0.29.0.rc1 db/migrate/20211126183540_add_timestamps_to_content_blocks.rb
decidim-core-0.28.2 db/migrate/20211126183540_add_timestamps_to_content_blocks.rb
decidim-core-0.27.7 db/migrate/20211126183540_add_timestamps_to_content_blocks.rb
decidim-core-0.28.1 db/migrate/20211126183540_add_timestamps_to_content_blocks.rb
decidim-core-0.27.6 db/migrate/20211126183540_add_timestamps_to_content_blocks.rb
decidim-core-0.26.10 db/migrate/20211126183540_add_timestamps_to_content_blocks.rb
decidim-core-0.26.9 db/migrate/20211126183540_add_timestamps_to_content_blocks.rb
decidim-core-0.28.0 db/migrate/20211126183540_add_timestamps_to_content_blocks.rb
decidim-core-0.27.5 db/migrate/20211126183540_add_timestamps_to_content_blocks.rb
decidim-core-0.28.0.rc5 db/migrate/20211126183540_add_timestamps_to_content_blocks.rb
decidim-core-0.28.0.rc4 db/migrate/20211126183540_add_timestamps_to_content_blocks.rb