Sha256: fe363d7f7fe9cd9da5faec4957453da4c0670067a1ca1bdf3b69a2641daec65e

Contents?: true

Size: 333 Bytes

Versions: 1

Compression:

Stored size: 333 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
end

class User < ActiveRecord::Base
  acts_as_cached

  has_many :books
  has_many :images, :as => :imagable
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
second_level_cache-1.3.2 test/active_record/model/user.rb