Class: ActiveRecord::ConnectionAdapters::MysqlAdapter::Column
- Inherits:
-
JdbcColumn
- Object
- Column
- JdbcColumn
- ActiveRecord::ConnectionAdapters::MysqlAdapter::Column
- Includes:
- ArJdbc::MySQL::Column
- Defined in:
- lib/arjdbc/mysql/adapter.rb
Instance Attribute Summary
Attributes included from ArJdbc::MySQL::Column
Attributes inherited from JdbcColumn
Instance Method Summary collapse
- #adapter ⇒ Object
-
#initialize(name, default, sql_type = nil, null = true, collation = nil, strict = false, extra = '') ⇒ Column
constructor
A new instance of Column.
Methods included from ArJdbc::MySQL::Column
#blob_or_text_column?, #case_sensitive?, #extract_default, #extract_limit, #has_default?, #missing_default_forged_as_empty_string?, #simplified_type
Methods inherited from JdbcColumn
column_types, #default_value, #init_column
Constructor Details
#initialize(name, default, sql_type = nil, null = true, collation = nil, strict = false, extra = '') ⇒ Column
Returns a new instance of Column.
630 631 632 633 634 635 636 637 638 |
# File 'lib/arjdbc/mysql/adapter.rb', line 630 def initialize(name, default, sql_type = nil, null = true, collation = nil, strict = false, extra = '') if Hash === name super # first arg: config else @strict = strict; @collation = collation; @extra = extra super(name, default, sql_type, null) # base 4.1: (name, default, sql_type = nil, null = true) end end |
Instance Method Details
#adapter ⇒ Object
Note:
ArJdbc::MySQL::Column uses this to check for boolean emulation
651 652 653 |
# File 'lib/arjdbc/mysql/adapter.rb', line 651 def adapter MysqlAdapter end |