Sha256: bdf52a1d11f79430fc621c85448cd3ee057e97b27f1668554e2e4d5c5c97bd7c
Contents?: true
Size: 451 Bytes
Versions: 5
Compression:
Stored size: 451 Bytes
Contents
class CreateCachedRatings < ActiveRecord::Migration def self.up create_table :cached_ratings do |t| t.belongs_to :cacheable, :polymorphic => true t.float :avg, :null => false t.integer :cnt, :null => false t.string :dimension t.integer :cacheable_id, :limit => 8 t.string :cacheable_type t.timestamps end end def self.down drop_table :cached_ratings end end
Version data entries
5 entries across 5 versions & 1 rubygems