Class: ActiveRecord::ConnectionAdapters::NullDBAdapter::TableDefinition
- Inherits:
-
TableDefinition
- Object
- TableDefinition
- ActiveRecord::ConnectionAdapters::NullDBAdapter::TableDefinition
- Defined in:
- lib/active_record/connection_adapters/nulldb_adapter/table_definition.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#create_column_definition(name, type, options) ⇒ Object
Avoid check for option validity.
- #unique_constraint(*args, **kwargs, &block) ⇒ Object
Instance Attribute Details
#name ⇒ Object
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, ) ActiveRecord::ConnectionAdapters::ColumnDefinition.new(name, type, ) 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 |