Sha256: 846d86f6caae4d24ff336f8d5c6379418e7ca298e2be9d458f20606986ced8b0
Contents?: true
Size: 288 Bytes
Versions: 24
Compression:
Stored size: 288 Bytes
Contents
class CreateRatings < ActiveRecord::Migration def self.up create_table :ratings do |t| t.timestamps t.column :obj_id, :string t.column :score, :integer t.column :count, :integer, :default => 0 end end def self.down drop_table :ratings end end
Version data entries
24 entries across 24 versions & 1 rubygems