Class: ActiveRecord::ConnectionAdapters::Column

Inherits:
Object
  • Object
show all
Defined in:
lib/connection_adapters/abstract/schema_definitions.rb

Instance Method Summary collapse

Instance Method Details

#default_specified?Boolean

MySQL sinks the boat on this one. If no default is specified for a non-nullable column, then MySQL assigns an implicit default value. This makes it impossible to determine whether or not a default value has been specified for any non-nullable column without parsing the SHOW CREATE TABLE output, which is non-standard.

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


14
15
16
# File 'lib/connection_adapters/abstract/schema_definitions.rb', line 14

def default_specified?
  raise NotImplementedError, "Column subclass did not implement this method"
end

#generated?Boolean

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


6
7
8
# File 'lib/connection_adapters/abstract/schema_definitions.rb', line 6

def generated?
  raise NotImplementedError, "Column subclass did not implement this method"
end