2022-01-01 13:38:12 +00:00
|
|
|
# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
|
2021-06-01 12:20:20 +00:00
|
|
|
|
2017-09-13 14:27:51 +00:00
|
|
|
class RemoveNetwork < ActiveRecord::Migration[5.0]
|
2017-09-12 13:07:10 +00:00
|
|
|
|
|
|
|
# rewinds db/migrate/20120101000020_create_network.rb
|
|
|
|
def change
|
|
|
|
return if !ActiveRecord::Base.connection.table_exists? 'networks'
|
|
|
|
|
|
|
|
drop_table :networks
|
|
|
|
drop_table :network_category_types
|
|
|
|
drop_table :network_privacies
|
|
|
|
drop_table :network_categories
|
|
|
|
drop_table :network_categories_moderator_users
|
|
|
|
drop_table :network_items
|
|
|
|
drop_table :network_item_comments
|
|
|
|
drop_table :network_item_plus
|
|
|
|
drop_table :network_category_subscriptions
|
|
|
|
drop_table :network_item_subscriptions
|
|
|
|
end
|
|
|
|
end
|