Sha256: 641f20e2b3295c604d36068e512212d287dbfc4c2090c4a03d6b3710c21a7b20

Contents?: true

Size: 301 Bytes

Versions: 24

Compression:

Stored size: 301 Bytes

Contents

# -*- encoding : utf-8 -*-
ActiveRecord::Base.connection.create_table(:images, :force => true) do |t|
  t.string  :url
  t.string  :imagable_type
  t.integer :imagable_id
end

class Image < ActiveRecord::Base
  acts_as_cached

  belongs_to :imagable, :polymorphic => true, :counter_cache => true
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
second_level_cache-1.6.0 test/active_record/model/image.rb
second_level_cache-1.5.1 test/active_record/model/image.rb
second_level_cache-1.5.0 test/active_record/model/image.rb
second_level_cache-1.3.2 test/active_record/model/image.rb