trabajo-afectivo/db/migrate/20170912123300_remove_network.rb

23 lines
749 B
Ruby
Raw Permalink Normal View History

# Copyright (C) 2012-2021 Zammad Foundation, http://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'
2018-04-12 14:57:37 +00:00
# rubocop:disable Rails/ReversibleMigration
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
2018-04-12 14:57:37 +00:00
# rubocop:enable Rails/ReversibleMigration
end
end