Class: DbSchema::Changes::CreateColumn
- Inherits:
-
Object
- Object
- DbSchema::Changes::CreateColumn
- Defined in:
- lib/db_schema/changes.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
- #primary_key? ⇒ Boolean
- #type ⇒ Object
Constructor Details
#initialize(field) ⇒ CreateColumn
Returns a new instance of CreateColumn.
290 291 292 |
# File 'lib/db_schema/changes.rb', line 290 def initialize(field) @field = field end |
Instance Attribute Details
#field ⇒ Object (readonly)
Returns the value of attribute field.
288 289 290 |
# File 'lib/db_schema/changes.rb', line 288 def field @field end |
Instance Method Details
#name ⇒ Object
294 295 296 |
# File 'lib/db_schema/changes.rb', line 294 def name field.name end |
#options ⇒ Object
306 307 308 |
# File 'lib/db_schema/changes.rb', line 306 def field. end |
#primary_key? ⇒ Boolean
302 303 304 |
# File 'lib/db_schema/changes.rb', line 302 def primary_key? field.primary_key? end |
#type ⇒ Object
298 299 300 |
# File 'lib/db_schema/changes.rb', line 298 def type field.type end |