Sha256: ddb2b7fa671d01ae96d42ce34a14e31de90a96bdfbca6f8ea5dda6c14603d191

Contents?: true

Size: 288 Bytes

Versions: 5

Compression:

Stored size: 288 Bytes

Contents

class CreateComments < ActiveRecord::Migration
  def self.up
    create_table :comments do |t|
      t.integer :commentable_id
      t.string :commentable_type
      t.string :commenter_id
      t.string :commenter_type
    end
  end
  
  def self.down
    drop_table :comments
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
pluginaweek-polymorphic_identity-0.1.0 test/app_root/db/migrate/005_create_comments.rb
polymorphic_identity-0.1.1 test/app_root/db/migrate/005_create_comments.rb
polymorphic_identity-0.0.5 test/app_root/db/migrate/005_create_comments.rb
polymorphic_identity-0.1.0 test/app_root/db/migrate/005_create_comments.rb
polymorphic_identity-0.0.4 test/app_root/db/migrate/005_create_comments.rb