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.26.8 db/migrate/20211126183540_add_timestamps_to_content_blocks.rb
decidim-core-0.27.4 db/migrate/20211126183540_add_timestamps_to_content_blocks.rb
decidim-core-0.27.3 db/migrate/20211126183540_add_timestamps_to_content_blocks.rb
decidim-core-0.26.7 db/migrate/20211126183540_add_timestamps_to_content_blocks.rb
decidim-core-0.26.5 db/migrate/20211126183540_add_timestamps_to_content_blocks.rb
decidim-core-0.27.2 db/migrate/20211126183540_add_timestamps_to_content_blocks.rb
decidim-core-0.27.1 db/migrate/20211126183540_add_timestamps_to_content_blocks.rb
decidim-core-0.26.4 db/migrate/20211126183540_add_timestamps_to_content_blocks.rb
decidim-core-0.27.0 db/migrate/20211126183540_add_timestamps_to_content_blocks.rb
decidim-core-0.26.3 db/migrate/20211126183540_add_timestamps_to_content_blocks.rb
decidim-core-0.27.0.rc2 db/migrate/20211126183540_add_timestamps_to_content_blocks.rb
decidim-core-0.27.0.rc1 db/migrate/20211126183540_add_timestamps_to_content_blocks.rb
decidim-core-0.26.2 db/migrate/20211126183540_add_timestamps_to_content_blocks.rb
decidim-core-0.26.1 db/migrate/20211126183540_add_timestamps_to_content_blocks.rb
decidim-core-0.26.0 db/migrate/20211126183540_add_timestamps_to_content_blocks.rb
decidim-core-0.26.0.rc2 db/migrate/20211126183540_add_timestamps_to_content_blocks.rb
decidim-core-0.26.0.rc1 db/migrate/20211126183540_add_timestamps_to_content_blocks.rb