Class: ActiveRecord::ConnectionAdapters::Column
- Inherits:
-
Object
- Object
- ActiveRecord::ConnectionAdapters::Column
- Defined in:
- lib/connection_adapters/abstract/schema_definitions.rb
Direct Known Subclasses
IBM_DB2Column, MysqlColumn, OracleColumn, PostgreSQLColumn, SQLServerColumn
Instance Method Summary collapse
-
#default_specified? ⇒ Boolean
MySQL sinks the boat on this one.
- #generated? ⇒ Boolean
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.
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
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 |