cirandas.net

ref: master

db/migrate/20120825185219_add_user_agent_and_referrer_to_comments.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
class AddUserAgentAndReferrerToComments < ActiveRecord::Migration
  def self.up
    add_column :comments, :user_agent, :string
    add_column :comments, :referrer, :string
  end

  def self.down
    remove_column :comments, :user_agent
    remove_column :comments, :referrer
  end
end