Sha256: b09e388c777d1ae56e049c217a7535d431d11a70be126735514122782b8c47b0
Contents?: true
Size: 304 Bytes
Versions: 5
Compression:
Stored size: 304 Bytes
Contents
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 second_level_cache belongs_to :user, counter_cache: true has_many :images, as: :imagable end
Version data entries
5 entries across 5 versions & 1 rubygems