Class: ActiveRecord::ConnectionAdapters::OracleEnhanced::TableDefinition
- Inherits:
 - 
      TableDefinition
      
        
- Object
 - TableDefinition
 - ActiveRecord::ConnectionAdapters::OracleEnhanced::TableDefinition
 
 
- Includes:
 - ColumnMethods
 
- Defined in:
 - lib/active_record/connection_adapters/oracle_enhanced/schema_definitions.rb
 
Instance Attribute Summary collapse
- 
  
    
      #organization  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute organization.
 - 
  
    
      #tablespace  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute tablespace.
 
Instance Method Summary collapse
- 
  
    
      #initialize(conn, name, temporary: false, options: nil, as: nil, tablespace: nil, organization: nil, comment: nil)  ⇒ TableDefinition 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of TableDefinition.
 - 
  
    
      #new_column_definition(name, type, **options)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
:nodoc:.
 - #references(*args, **options) ⇒ Object (also: #belongs_to)
 
Methods included from ColumnMethods
Constructor Details
#initialize(conn, name, temporary: false, options: nil, as: nil, tablespace: nil, organization: nil, comment: nil) ⇒ TableDefinition
Returns a new instance of TableDefinition.
      56 57 58 59 60 61 62 63 64 65 66 67 68 69 70  | 
    
      # File 'lib/active_record/connection_adapters/oracle_enhanced/schema_definitions.rb', line 56 def initialize( conn, name, temporary: false, options: nil, as: nil, tablespace: nil, organization: nil, comment: nil, ** ) @tablespace = tablespace @organization = organization super(conn, name, temporary: temporary, options: , as: as, comment: comment) end  | 
  
Instance Attribute Details
#organization ⇒ Object
Returns the value of attribute organization.
      55 56 57  | 
    
      # File 'lib/active_record/connection_adapters/oracle_enhanced/schema_definitions.rb', line 55 def organization @organization end  | 
  
#tablespace ⇒ Object
Returns the value of attribute tablespace.
      55 56 57  | 
    
      # File 'lib/active_record/connection_adapters/oracle_enhanced/schema_definitions.rb', line 55 def tablespace @tablespace end  | 
  
Instance Method Details
#new_column_definition(name, type, **options) ⇒ Object
:nodoc:
      72 73 74 75 76 77 78  | 
    
      # File 'lib/active_record/connection_adapters/oracle_enhanced/schema_definitions.rb', line 72 def new_column_definition(name, type, **) # :nodoc: if type == :virtual raise "No virtual column definition found." unless [:as] type = [:type] end super end  | 
  
#references(*args, **options) ⇒ Object Also known as: belongs_to
      80 81 82  | 
    
      # File 'lib/active_record/connection_adapters/oracle_enhanced/schema_definitions.rb', line 80 def references(*args, **) super(*args, type: :integer, **) end  |