Class: SQL::Mysql::Column
- Inherits:
-
Object
- Object
- SQL::Mysql::Column
- Defined in:
- lib/dm-migrations/sql/mysql.rb
Instance Method Summary collapse
-
#initialize(col_struct) ⇒ Column
constructor
A new instance of Column.
Constructor Details
#initialize(col_struct) ⇒ Column
Returns a new instance of Column.
74 75 76 77 78 79 80 81 |
# File 'lib/dm-migrations/sql/mysql.rb', line 74 def initialize(col_struct) @name = col_struct.name @type = col_struct.type @default_value = col_struct.dflt_value @primary_key = col_struct.pk @not_null = col_struct.notnull == 0 end |