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



20
21
22
# File 'lib/active_record/connection_adapters/nulldb_adapter/table_definition.rb', line 20

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

#unique_constraint(*args, **kwargs, &block) ⇒ Object



16
# File 'lib/active_record/connection_adapters/nulldb_adapter/table_definition.rb', line 16

def unique_constraint(*args, **kwargs, &block); end