Class: SQL::Sqlite::Column

Inherits:
Column
  • Object
show all
Defined in:
lib/dm-migrations/sql/sqlite.rb

Instance Attribute Summary

Attributes inherited from Column

#default_value, #name, #not_null, #primary_key, #type, #unique

Instance Method Summary collapse

Constructor Details

#initialize(col_struct) ⇒ Column

Returns a new instance of Column.



38
39
40
41
42
# File 'lib/dm-migrations/sql/sqlite.rb', line 38

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