Class: Charming::Generators::MigrationGenerator::Field

Inherits:
Data
  • Object
show all
Defined in:
lib/charming/generators/migration_generator.rb

Overview

A single migration field: column name and ActiveRecord type.

Instance Attribute Summary collapse

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



13
14
15
# File 'lib/charming/generators/migration_generator.rb', line 13

def name
  @name
end

#typeObject (readonly)

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



13
14
15
# File 'lib/charming/generators/migration_generator.rb', line 13

def type
  @type
end