Sha256: 8ced95c3508bfadf4e86b4466b1629fcd5db89c4efa1cbcc1c84968b81900f65

Contents?: true

Size: 251 Bytes

Versions: 9

Compression:

Stored size: 251 Bytes

Contents

# frozen_string_literal: true

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

9 entries across 9 versions & 1 rubygems

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