Class: ArJdbc::Oracle::TableDefinition

Inherits:
ActiveRecord::ConnectionAdapters::TableDefinition
  • Object
show all
Defined in:
lib/arjdbc/oracle/adapter.rb

Instance Method Summary collapse

Instance Method Details

#aliased_types(name, fallback) ⇒ Object



112
113
114
115
# File 'lib/arjdbc/oracle/adapter.rb', line 112

def aliased_types(name, fallback)
  # NOTE: disable aliasing :timestamp as :datetime :
  fallback # 'timestamp' == name ? :datetime : fallback
end

#raw(name, options = {}) ⇒ Object



94
95
96
97
# File 'lib/arjdbc/oracle/adapter.rb', line 94

def raw(*args)
  options = args.extract_options!
  column(args[0], 'raw', options)
end

#xml(*args) ⇒ Object



103
104
105
106
# File 'lib/arjdbc/oracle/adapter.rb', line 103

def xml(*args)
  options = args.extract_options!
  column(args[0], 'xml', options)
end