method
new
new(name, type)
public
Hide source
# File railties/lib/rails_generator/generated_attribute.rb, line 8 def initialize(name, type) @name, @type = name, type.to_sym @column = ActiveRecord::ConnectionAdapters::Column.new(name, nil, @type) end