Sha256: efb067e2219a1b8ac927250123b81c788ac34b5b577a6041762cd0ddbf7662e2

Contents?: true

Size: 220 Bytes

Versions: 5

Compression:

Stored size: 220 Bytes

Contents

ActiveRecord::Base.connection.create_table(:posts, force: true) do |t|
  t.text :body
  t.string :slug
  t.integer :topic_id
end

class Post < ActiveRecord::Base
  second_level_cache
  belongs_to :topic, touch: true
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
second_level_cache-2.3.3 test/model/post.rb
second_level_cache-2.3.2 test/model/post.rb
second_level_cache-2.3.1 test/model/post.rb
second_level_cache-2.3.0 test/model/post.rb
second_level_cache-2.3.0.beta test/model/post.rb