6714b5f1a4
Bumps [rubocop-rails](https://github.com/rubocop/rubocop-rails) from 2.12.4 to 2.13.0. - [Release notes](https://github.com/rubocop/rubocop-rails/releases) - [Changelog](https://github.com/rubocop/rubocop-rails/blob/master/CHANGELOG.md) - [Commits](https://github.com/rubocop/rubocop-rails/compare/v2.12.4...v2.13.0)
20 lines
655 B
Ruby
20 lines
655 B
Ruby
# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
|
|
|
|
class RemoveNetwork < ActiveRecord::Migration[5.0]
|
|
|
|
# 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
|