Class: SQL::Mysql::Column

Inherits:
Object show all
Defined in:
lib/gems/dm-migrations-0.9.9/lib/sql/mysql.rb

Instance Method Summary collapse

Constructor Details

#initialize(col_struct) ⇒ Column

Returns a new instance of Column.



43
44
45
46
47
# File 'lib/gems/dm-migrations-0.9.9/lib/sql/mysql.rb', line 43

def initialize(col_struct)
  @name, @type, @default_value, @primary_key = col_struct.name, col_struct.type, col_struct.dflt_value, col_struct.pk

  @not_null = col_struct.notnull == 0
end