Sha256: d2569772cc04390bf5a6d0e290a388fd2996433526df0f53068c36ff279a6cf6
Contents?: true
Size: 300 Bytes
Versions: 21
Compression:
Stored size: 300 Bytes
Contents
# :stopdoc: 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
21 entries across 21 versions & 1 rubygems
Version | Path |
---|---|
infopark_rails_connector-6.8.0.beta.200.621.4c8e1b0 | lib/generators/rails_connector/ratings/templates/migration.rb |