Skip to content

Instantly share code, notes, and snippets.

@surgentt
Created March 24, 2014 13:26
class AddDefaultPhotoIdToUsers < ActiveRecord::Migration
def change
add_column :users, :default_photo_id, :integer
remove_column :user_photos, :default_photo
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment