Sha256: 252ff10e9276c0f04daa414bd84a22998d3bb9b7dfc8ab28c72c5ce6ff47aa9a
Contents?: true
Size: 339 Bytes
Versions: 24
Compression:
Stored size: 339 Bytes
Contents
# -*- encoding : utf-8 -*- ActiveRecord::Base.connection.create_table(:books, :force => true) do |t| t.string :title t.string :body t.integer :user_id t.integer :images_count, :default => 0 end class Book < ActiveRecord::Base acts_as_cached belongs_to :user, :counter_cache => true has_many :images, :as => :imagable end
Version data entries
24 entries across 24 versions & 1 rubygems