class Rails::Generators::GeneratedAttribute

def initialize(name, type)

def initialize(name, type)
  raise Thor::Error, "Missing type for attribute '#{name}'.\nExample: '#{name}:string' where string is the type." if type.blank?
  @name, @type = name, type.to_sym
end