Method: DBGeni::Migrator::Oracle#remove
- Defined in:
- lib/dbgeni/migrators/oracle.rb
#remove(code, force = false) ⇒ Object
52 53 54 55 56 57 58 59 60 |
# File 'lib/dbgeni/migrators/oracle.rb', line 52 def remove(code, force=false) begin @connection.execute(drop_command(code)) rescue Exception => e unless e.to_s =~ /(object|trigger) .+ does not exist/ raise DBGeni::CodeRemoveFailed, e.to_s end end end |