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