Class: SQL::Sqlite3::Column
- Defined in:
- lib/gems/dm-migrations-0.9.9/lib/sql/sqlite3.rb
Instance Attribute Summary
Attributes inherited from Column
#default_value, #name, #not_null, #primary_key, #type, #unique
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.
34 35 36 37 38 |
# File 'lib/gems/dm-migrations-0.9.9/lib/sql/sqlite3.rb', line 34 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 |