Sha256: 80f67dffad7c03a3bfcebc2e8352dc9ed4b698406e6cbf32f2979581959d32ab

Contents?: true

Size: 233 Bytes

Versions: 10

Compression:

Stored size: 233 Bytes

Contents

# -*- encoding : utf-8 -*-
ActiveRecord::Base.connection.create_table(:posts, :force => true) do |t|
  t.text  :body
  t.integer :topic_id
end

class Post < ActiveRecord::Base
  acts_as_cached
  belongs_to :topic, :touch => true
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
second_level_cache-2.1.0.rc1 test/active_record/model/post.rb
second_level_cache-2.0.0 test/active_record/model/post.rb
second_level_cache-2.0.0.rc1 test/active_record/model/post.rb
second_level_cache-2.0.0.beta test/active_record/model/post.rb
second_level_cache-1.6.2 test/active_record/model/post.rb
second_level_cache-1.6.1 test/active_record/model/post.rb
second_level_cache-1.6.0 test/active_record/model/post.rb
second_level_cache-1.5.1 test/active_record/model/post.rb
second_level_cache-1.5.0 test/active_record/model/post.rb
second_level_cache-1.3.2 test/active_record/model/post.rb