forgeplus/db/migrate/20200714032759_drop_devops_...

6 lines
203 B
Ruby

class DropDevopsCloundAccountsTable < ActiveRecord::Migration[5.2]
def change
drop_table(:devops_cloud_accounts) if ActiveRecord::Base.connection.tables.include?('devops_cloud_accounts')
end
end