Sha256: 47f92441150874612ad8c8471288ad5ede2fc7e7ea27a597f47e8944ec7940d5

Contents?: true

Size: 299 Bytes

Versions: 9

Compression:

Stored size: 299 Bytes

Contents

# frozen_string_literal: true

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
  second_level_cache

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
second_level_cache-2.6.0 test/model/image.rb
second_level_cache-2.5.3 test/model/image.rb
second_level_cache-2.5.2 test/model/image.rb
second_level_cache-2.5.0 test/model/image.rb
second_level_cache-2.4.4 test/model/image.rb
second_level_cache-2.4.3 test/model/image.rb
second_level_cache-2.4.2 test/model/image.rb
second_level_cache-2.4.1 test/model/image.rb
second_level_cache-2.4.0 test/model/image.rb