Sha256: 3945c64fc75ea51c6a1f94cbf6ccf6bb617938f56a593bfafa9a46d33c7f0f86
Contents?: true
Size: 295 Bytes
Versions: 3
Compression:
Stored size: 295 Bytes
Contents
class CreateRatings < ActiveRecord::Migration def self.up create_table :ratings do |t| t.references :ratable, :rater, :polymorphic => true, :null => false t.references :value, :null => false t.timestamps end end def self.down drop_table :ratings end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
pluginaweek-has_ratings-0.3.0 | db/migrate/002_create_ratings.rb |
has_ratings-0.3.1 | generators/has_ratings/templates/002_create_ratings.rb |
has_ratings-0.3.0 | db/migrate/002_create_ratings.rb |