Sha256: 87313d087d0fb38cd2141ebc3991804807021750709c55d8573c396e2691c167

Contents?: true

Size: 266 Bytes

Versions: 3

Compression:

Stored size: 266 Bytes

Contents

class AddCounterCacheToModels < ActiveRecord::Migration
  def change
    change_table :formol_forums do |t|
      t.integer :topics_count
      t.integer :posts_count
    end
    
    change_table :formol_topics do |t|
      t.integer :posts_count
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
formol-0.0.6 db/migrate/20120104132631_add_counter_cache_to_models.rb
formol-0.0.5 db/migrate/20120104132631_add_counter_cache_to_models.rb
formol-0.0.4 db/migrate/20120104132631_add_counter_cache_to_models.rb