Class: Convergence::Column
- Inherits:
-
Object
- Object
- Convergence::Column
- Defined in:
- lib/convergence/column.rb
Constant Summary collapse
- COLUMN_TYPE =
%i( tinyint smallint mediumint int bigint float double decimal char varchar tinyblob blob mediumblob longblob tinytext text mediumtext longtext enum set date time datetime timestamp year )
- FLOATING_POINT_COLUMN_TYPE =
%i( float double decimal )
Instance Attribute Summary collapse
-
#column_name ⇒ Object
Returns the value of attribute column_name.
-
#options ⇒ Object
Returns the value of attribute options.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, column_name, options = {}) ⇒ Column
constructor
A new instance of Column.
Constructor Details
#initialize(type, column_name, options = {}) ⇒ Column
Returns a new instance of Column.
37 38 39 40 41 |
# File 'lib/convergence/column.rb', line 37 def initialize(type, column_name, = {}) @type = type @column_name = column_name @options = end |
Instance Attribute Details
#column_name ⇒ Object
Returns the value of attribute column_name.
2 3 4 |
# File 'lib/convergence/column.rb', line 2 def column_name @column_name end |
#options ⇒ Object
Returns the value of attribute options.
2 3 4 |
# File 'lib/convergence/column.rb', line 2 def @options end |
#type ⇒ Object
Returns the value of attribute type.
2 3 4 |
# File 'lib/convergence/column.rb', line 2 def type @type end |