Class: DbSchema::Operations::CreateColumn
- Inherits:
-
Object
- Object
- DbSchema::Operations::CreateColumn
- Defined in:
- lib/db_schema/operations.rb
Instance Attribute Summary collapse
-
#field ⇒ Object
readonly
Returns the value of attribute field.
Instance Method Summary collapse
-
#initialize(field) ⇒ CreateColumn
constructor
A new instance of CreateColumn.
- #name ⇒ Object
- #options ⇒ Object
- #type ⇒ Object
Constructor Details
#initialize(field) ⇒ CreateColumn
Returns a new instance of CreateColumn.
59 60 61 |
# File 'lib/db_schema/operations.rb', line 59 def initialize(field) @field = field end |
Instance Attribute Details
#field ⇒ Object (readonly)
Returns the value of attribute field.
57 58 59 |
# File 'lib/db_schema/operations.rb', line 57 def field @field end |
Instance Method Details
#name ⇒ Object
63 64 65 |
# File 'lib/db_schema/operations.rb', line 63 def name field.name end |
#options ⇒ Object
71 72 73 |
# File 'lib/db_schema/operations.rb', line 71 def field. end |
#type ⇒ Object
67 68 69 |
# File 'lib/db_schema/operations.rb', line 67 def type field.type end |