Sha256: c73daaace056dfefd654737a13a752194f24d3101b4659e2d329452b07e4ad6d

Contents?: true

Size: 193 Bytes

Versions: 11

Compression:

Stored size: 193 Bytes

Contents

class AddCachedStatsToEvent < ActiveRecord::Migration
  def change
    add_column :events, :cached_stats, :text

    Event.all.each do |event|
      event.delay.refresh_stats
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
artfully_ose-1.3.0.pre4 db/migrate/20140423185921_add_cached_stats_to_event.rb
artfully_ose-1.3.0.pre3 db/migrate/20140423185921_add_cached_stats_to_event.rb
artfully_ose-1.3.0.pre2 db/migrate/20140423185921_add_cached_stats_to_event.rb
artfully_ose-1.3.0.pre1 db/migrate/20140423185921_add_cached_stats_to_event.rb
artfully_ose-1.2.0 db/migrate/20140423185921_add_cached_stats_to_event.rb
artfully_ose-1.2.0.beta.1 db/migrate/20140423185921_add_cached_stats_to_event.rb
artfully_ose-1.2.0.alpha.2 db/migrate/20140423185921_add_cached_stats_to_event.rb
artfully_ose-1.2.0.alpha.1 db/migrate/20140423185921_add_cached_stats_to_event.rb
artfully_ose-1.2.0.pre.27 db/migrate/20140423185921_add_cached_stats_to_event.rb
artfully_ose-1.2.0.pre.26 db/migrate/20140423185921_add_cached_stats_to_event.rb
artfully_ose-1.2.0.pre.24 db/migrate/20140423185921_add_cached_stats_to_event.rb