We can determine diaspora_handle from a relation with people for the shareables (posts, photos). So we don't need to store diaspora_handle in the DB. Also remove tmp_old_id from photos which is not refenrenced anywhere.
7 lines
224 B
Ruby
7 lines
224 B
Ruby
class CleanupHandles < ActiveRecord::Migration
|
|
def change
|
|
remove_column :photos, :tmp_old_id, :integer
|
|
remove_column :photos, :diaspora_handle, :string
|
|
remove_column :posts, :diaspora_handle, :string
|
|
end
|
|
end
|