mirror of
https://github.com/diaspora/diaspora.git
synced 2026-01-10 07:38:10 -05:00
Facebook removed the API and facebook integration is broken now, so lets remove it. closes #7874
15 lines
306 B
Ruby
15 lines
306 B
Ruby
# frozen_string_literal: true
|
|
|
|
class RemoveFacebook < ActiveRecord::Migration[5.1]
|
|
class Service < ApplicationRecord
|
|
end
|
|
|
|
def change
|
|
remove_column :posts, :facebook_id, :string
|
|
|
|
reversible do |change|
|
|
change.up { Service.where(type: "Services::Facebook").delete_all }
|
|
end
|
|
end
|
|
end
|