Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: d481e05060
Fetching contributors…

Cannot retrieve contributors at this time

46 lines (36 sloc) 1.355 kb
module ActiveRecord
module Tasks # :nodoc:
class OracleDatabaseTasks # :nodoc:
delegate :connection, :establish_connection, to: ActiveRecord::Base
def initialize(configuration)
ActiveSupport::Deprecation.warn "This database tasks were deprecated, because this tasks should be served by the 3rd party adapter."
@configuration = configuration
end
def create
$stderr.puts 'sorry, your database adapter is not supported yet, feel free to submit a patch'
end
def drop
$stderr.puts 'sorry, your database adapter is not supported yet, feel free to submit a patch'
end
def purge
establish_connection(:test)
connection.structure_drop.split(";\n\n").each { |ddl| connection.execute(ddl) }
end
def charset
$stderr.puts 'sorry, your database adapter is not supported yet, feel free to submit a patch'
end
def structure_dump(filename)
establish_connection(configuration)
File.open(filename, "w:utf-8") { |f| f << connection.structure_dump }
end
def structure_load(filename)
establish_connection(configuration)
IO.read(filename).split(";\n\n").each { |ddl| connection.execute(ddl) }
end
private
def configuration
@configuration
end
end
end
end
Jump to Line
Something went wrong with that request. Please try again.