cirandas.net

ref: master

db/migrate/20101221134544_add_reply_to_comments.rb


1
2
3
4
5
6
7
8
9
class AddReplyToComments < ActiveRecord::Migration
  def self.up
    add_column :comments, :reply_of_id, :integer
  end

  def self.down
    remove_column :comments, :reply_of_id
  end
end