cirandas.net

ref: master

db/migrate/20120307200651_add_ip_address_to_comment.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
class AddIpAddressToComment < ActiveRecord::Migration
  def self.up
    add_column :comments, :ip_address, :string
    add_column :comments, :spam, :boolean
  end

  def self.down
    remove_column :comments, :ip_address
    remove_column :comments, :spam
  end
end