facebook migration
parent
002d62cf88
commit
11e2f8b8b9
|
@ -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
|
Reference in New Issue