facebook migration

master
andrew 2008-11-22 21:23:51 -06:00
parent 002d62cf88
commit 11e2f8b8b9
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
class FacebookDataMigration < ActiveRecord::Migration
def self.up
add_column :users, :facebook_id, :bigint
add_index :users, :facebook_id
add_column :photos, :facebook_id, :bigint
add_index :photos, :facebook_id
end
def self.down
remove_column :users, :facebook_id
remove_column :photos, :facebook_id
end
end