Class: ActiveRecord::ConnectionAdapters::ColumnDefinition

Inherits:
Object
  • Object
show all
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

Instance Method Details

#auto_incrementObject



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_typeObject



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

#unsignedObject



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