Sha256: 9697c2dd60e4511567e42b2065f333730ab7ea7b8e86b8711caac06af59ca6ed

Contents?: true

Size: 223 Bytes

Versions: 1

Compression:

Stored size: 223 Bytes

Contents

class CreateComments < ActiveRecord::Migration
  def change
    create_table :comments do|t|
      t.text :content
      t.string :title
      t.references :comment, :polymorphic => true
      t.timestamps
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
has_comments-0.3.0 lib/generators/templates/create_comments.rb