Sha256: 0959057733ce700cda56c743e2666b68c87e0ea6981134584cb43b9ff7a1f2d8

Contents?: true

Size: 290 Bytes

Versions: 24

Compression:

Stored size: 290 Bytes

Contents

# frozen_string_literal: true

class AddPublishedAtToDecidimFeatures < ActiveRecord::Migration[5.0]
  def change
    add_column :decidim_features, :published_at, :datetime
    execute "UPDATE decidim_features SET published_at=#{ActiveRecord::Base.connection.quote(Time.current)}"
  end
end

Version data entries

24 entries across 24 versions & 2 rubygems

Version Path
decidim-core-0.4.0 db/migrate/20170206142116_add_published_at_to_decidim_features.rb
decidim-core-0.3.2 db/migrate/20170206142116_add_published_at_to_decidim_features.rb
decidim-core-0.3.1 db/migrate/20170206142116_add_published_at_to_decidim_features.rb
decidim-core-0.3.0 db/migrate/20170206142116_add_published_at_to_decidim_features.rb