Facebook removed the API and facebook integration is broken now, so lets remove it. closes #7874
14 lines
306 B
Ruby
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
|