diaspora/db/migrate/20181004003638_remove_facebook.rb
Benjamin Neff fc6893d4fc
Remove facebook integration
Facebook removed the API and facebook integration is broken now, so lets
remove it.

closes #7874
2018-10-08 02:50:25 +02:00

14 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