Sha256: 9f94efac6e8c47d8938c1082b54a19eb970d08f296a3232cd75b4f67870be393

Contents?: true

Size: 250 Bytes

Versions: 14

Compression:

Stored size: 250 Bytes

Contents

# -*- encoding : utf-8 -*-
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
  acts_as_cached
  belongs_to :topic, :touch => true
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
second_level_cache-2.1.16 test/model/post.rb
second_level_cache-2.1.15 test/model/post.rb
second_level_cache-2.1.14 test/model/post.rb
second_level_cache-2.1.13 test/model/post.rb
second_level_cache-2.1.10 test/model/post.rb
second_level_cache-2.1.9 test/model/post.rb
second_level_cache-2.1.8 test/model/post.rb
second_level_cache-2.1.7 test/model/post.rb
second_level_cache-2.1.6 test/model/post.rb
second_level_cache-2.1.5 test/model/post.rb
second_level_cache-2.1.2 test/model/post.rb
second_level_cache-2.1.1 test/model/post.rb
second_level_cache-2.1.0 test/model/post.rb
second_level_cache-2.1.0.rc2 test/active_record/model/post.rb