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-2.1.16 test/model/image.rb
second_level_cache-2.1.15 test/model/image.rb
second_level_cache-2.1.14 test/model/image.rb
second_level_cache-2.1.13 test/model/image.rb
second_level_cache-2.1.10 test/model/image.rb
second_level_cache-2.1.9 test/model/image.rb
second_level_cache-2.1.8 test/model/image.rb
second_level_cache-2.1.7 test/model/image.rb
second_level_cache-2.1.6 test/model/image.rb
second_level_cache-2.1.5 test/model/image.rb
second_level_cache-2.1.2 test/model/image.rb
second_level_cache-2.1.1 test/model/image.rb
second_level_cache-2.1.0 test/model/image.rb
second_level_cache-2.1.0.rc2 test/active_record/model/image.rb
second_level_cache-2.1.0.rc1 test/active_record/model/image.rb
second_level_cache-2.0.0 test/active_record/model/image.rb
second_level_cache-2.0.0.rc1 test/active_record/model/image.rb
second_level_cache-2.0.0.beta test/active_record/model/image.rb
second_level_cache-1.6.2 test/active_record/model/image.rb
second_level_cache-1.6.1 test/active_record/model/image.rb