2 # A migration to add tables for Comment and Commenting. This file is automatically generated and added to your app if you run the commenting generator.
4 class CreateCommentsAndCommentings < ActiveRecord::Migration
8 create_table :comments do |t|
9 t.column :name, :string, :null => false
10 t.column :url, :string
11 t.column :email, :string
15 create_table :commentings do |t|
16 t.column :<%= parent_association_name -%>_id, :integer, :null => false
17 t.column :commentable_id, :integer, :null => false
18 t.column :commentable_type, :string, :null => false
25 drop_table :commentings