* spelling: active Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: advertisements Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: columns Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: identities Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: index Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: secret Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: username Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> Co-authored-by: Josh Soref <jsoref@users.noreply.github.com>
17 lines
475 B
Ruby
17 lines
475 B
Ruby
class DropConnectTables < ActiveRecord::Migration[6.1]
|
|
def up
|
|
safety_assured do
|
|
remove_foreign_key :chat_channel_memberships, :chat_channels
|
|
remove_foreign_key :chat_channel_memberships, :users
|
|
remove_foreign_key :tags, :chat_channels, column: :mod_chat_channel_id
|
|
|
|
drop_table :messages
|
|
drop_table :chat_channel_memberships
|
|
drop_table :chat_channels
|
|
end
|
|
end
|
|
|
|
def down
|
|
raise ActiveRecord::IrreversibleMigratione
|
|
end
|
|
end
|