Sha256: eb519a7b854e4c96ad5cb2ae09f3afa6393816fb656dd34a0a8951ff649b5bf2

Contents?: true

Size: 298 Bytes

Versions: 6

Compression:

Stored size: 298 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 < ApplicationRecord
  second_level_cache

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
second_level_cache-2.7.1 test/model/image.rb
second_level_cache-2.7.0 test/model/image.rb
second_level_cache-2.6.4 test/model/image.rb
second_level_cache-2.6.3 test/model/image.rb
second_level_cache-2.6.2 test/model/image.rb
second_level_cache-2.6.1 test/model/image.rb