Sha256: 7f9b1f9410dc77cdd803fdc6f5bf6e945581015f5f3bd465871f049aceedee67

Contents?: true

Size: 260 Bytes

Versions: 110

Compression:

Stored size: 260 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=#{quote(Time.current)}"
  end
end

Version data entries

110 entries across 110 versions & 2 rubygems

Version Path
decidim-core-0.7.3 db/migrate/20170206142116_add_published_at_to_decidim_features.rb
decidim-core-0.7.2 db/migrate/20170206142116_add_published_at_to_decidim_features.rb
decidim-core-0.7.1 db/migrate/20170206142116_add_published_at_to_decidim_features.rb
decidim-core-0.7.0 db/migrate/20170206142116_add_published_at_to_decidim_features.rb
decidim-core-0.6.8 db/migrate/20170206142116_add_published_at_to_decidim_features.rb
decidim-0.6.8 decidim-core/db/migrate/20170206142116_add_published_at_to_decidim_features.rb
decidim-core-0.6.7 db/migrate/20170206142116_add_published_at_to_decidim_features.rb
decidim-0.6.7 decidim-core/db/migrate/20170206142116_add_published_at_to_decidim_features.rb
decidim-core-0.6.6 db/migrate/20170206142116_add_published_at_to_decidim_features.rb
decidim-0.6.6 decidim-core/db/migrate/20170206142116_add_published_at_to_decidim_features.rb