Skip to content

Instantly share code, notes, and snippets.

@joesavak
Created May 20, 2011 19:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joesavak/983665 to your computer and use it in GitHub Desktop.
Save joesavak/983665 to your computer and use it in GitHub Desktop.
facebook migration
class AddFbAccessTokenToUsers < ActiveRecord::Migration
def self.up
add_column :users, :fbaccess, :string
add_column :users, :fbusername, :string
add_column :users, :fb_uid, :bigint
end
def self.down
remove_column :users, :fbaccess
remove_column :users, :fbusername
remove_column :users, :fb_uid
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment