Class: Charming::Generators::MigrationGenerator::Field
- Inherits:
-
Data
- Object
- Data
- Charming::Generators::MigrationGenerator::Field
- Defined in:
- lib/charming/generators/migration_generator.rb
Overview
A single migration field: column name and ActiveRecord type.
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name
13 14 15 |
# File 'lib/charming/generators/migration_generator.rb', line 13 def name @name end |
#type ⇒ Object (readonly)
Returns the value of attribute type
13 14 15 |
# File 'lib/charming/generators/migration_generator.rb', line 13 def type @type end |