Class: ActiveRecord::ConnectionAdapters::NullDBAdapter::TableDefinition

Inherits:
TableDefinition
  • Object
show all
Defined in:
lib/active_record/connection_adapters/nulldb_adapter/table_definition.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/active_record/connection_adapters/nulldb_adapter/table_definition.rb', line 4

def name
  @name
end

Instance Method Details

#create_column_definition(name, type, options) ⇒ Object

Avoid check for option validity



18
19
20
# File 'lib/active_record/connection_adapters/nulldb_adapter/table_definition.rb', line 18

def create_column_definition(name, type, options)
  ActiveRecord::ConnectionAdapters::ColumnDefinition.new(name, type, options)
end