cirandas.net

ref: master

db/migrate/022_add_friendship_fields.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
class AddFriendshipFields < ActiveRecord::Migration
  def self.up
    # users must be able to classify their friends
    add_column :friendships, :group, :string
  end

  def self.down
    remove_column :friendships, :group
  end
end