Class: ActiveRecord::ConnectionAdapters::ColumnDefinition
- Inherits:
-
Object
- Object
- ActiveRecord::ConnectionAdapters::ColumnDefinition
- Defined in:
- lib/activerecord-mysql-unsigned/active_record/v3/connection_adapters/abstract/schema_definitions.rb,
lib/activerecord-mysql-unsigned/active_record/v4/connection_adapters/abstract/schema_definitions.rb
Instance Method Summary collapse
- #auto_increment ⇒ Object
- #auto_increment=(value) ⇒ Object
- #sql_type ⇒ Object
- #unsigned ⇒ Object
- #unsigned=(value) ⇒ Object
Instance Method Details
#auto_increment ⇒ Object
18 19 20 |
# File 'lib/activerecord-mysql-unsigned/active_record/v3/connection_adapters/abstract/schema_definitions.rb', line 18 def auto_increment @auto_increment end |
#auto_increment=(value) ⇒ Object
14 15 16 |
# File 'lib/activerecord-mysql-unsigned/active_record/v3/connection_adapters/abstract/schema_definitions.rb', line 14 def auto_increment=(value) @auto_increment = value end |
#sql_type ⇒ Object
22 23 24 |
# File 'lib/activerecord-mysql-unsigned/active_record/v3/connection_adapters/abstract/schema_definitions.rb', line 22 def sql_type base.type_to_sql(type.to_sym, limit, precision, scale, unsigned, auto_increment) rescue type end |
#unsigned ⇒ Object
10 11 12 |
# File 'lib/activerecord-mysql-unsigned/active_record/v3/connection_adapters/abstract/schema_definitions.rb', line 10 def unsigned @unsigned end |
#unsigned=(value) ⇒ Object
6 7 8 |
# File 'lib/activerecord-mysql-unsigned/active_record/v3/connection_adapters/abstract/schema_definitions.rb', line 6 def unsigned=(value) @unsigned = value end |