From 11e2f8b8b98c7259625c6679e79e339020ab2d16 Mon Sep 17 00:00:00 2001 From: andrew Date: Sat, 22 Nov 2008 21:23:51 -0600 Subject: [PATCH] facebook migration --- schema/migrations/009_facebook_data_migration.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 schema/migrations/009_facebook_data_migration.rb diff --git a/schema/migrations/009_facebook_data_migration.rb b/schema/migrations/009_facebook_data_migration.rb new file mode 100644 index 0000000..2887d6a --- /dev/null +++ b/schema/migrations/009_facebook_data_migration.rb @@ -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