new(name, type)
public

No documentation available.

# File railties/lib/rails/generators/generated_attribute.rb, line 9
      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