Sha256: 8d9717f2bdd89465f0fd3978cc1326f1ce0919e9280c187760d4a0f1b2fc1d28
Contents?: true
Size: 415 Bytes
Versions: 2
Compression:
Stored size: 415 Bytes
Contents
# -*- encoding : utf-8 -*- ActiveRecord::Base.connection.create_table(:users, :force => true) do |t| t.string :name t.string :email t.integer :books_count, :default => 0 t.integer :images_count, :default => 0 t.timestamps end class User < ActiveRecord::Base CacheVersion = 3 acts_as_cached(:version => CacheVersion, :expires_in => 3.day) has_many :books has_many :images, :as => :imagable end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
second_level_cache-1.6.1 | test/active_record/model/user.rb |
second_level_cache-1.6.0 | test/active_record/model/user.rb |