This repository has been archived on 2020-05-27. You can view files and clone it, but cannot push or open issues/pull-requests.
binaryattraction/schema/migrations/009_facebook_data_migration.rb

14 lines
342 B
Ruby

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